Skip to content

Commit

Permalink
Prepare for TFT 0.14 release.
Browse files Browse the repository at this point in the history
- Updating version to 0.14.0
- Setting the currently release in the release notes to 0.14
- Requiring TF version >= 0.14
- Depending on Beam 2.14, and updating the dependency tables
- Adding official python 3.6 and 3.7 support in setup.py

PiperOrigin-RevId: 261703272
  • Loading branch information
zoyahav authored and tf-transform-team committed Aug 5, 2019
1 parent cefcb0f commit 53c026e
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 16 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ other *untested* combinations may also work.

|tensorflow-transform |tensorflow |apache-beam[gcp]|
|--------------------------------------------------------------------------------|--------------|----------------|
|[GitHub master](https://github.com/tensorflow/transform/blob/master/RELEASE.md) |nightly (1.x) |2.13.0 |
|[GitHub master](https://github.com/tensorflow/transform/blob/master/RELEASE.md) |nightly (1.x) |2.14.0 |
|[0.14.0](https://github.com/tensorflow/transform/blob/v0.13.0/RELEASE.md) |1.14 |2.14.0 |
|[0.13.0](https://github.com/tensorflow/transform/blob/v0.13.0/RELEASE.md) |1.13 |2.11.0 |
|[0.12.0](https://github.com/tensorflow/transform/blob/v0.12.0/RELEASE.md) |1.12 |2.10.0 |
|[0.11.0](https://github.com/tensorflow/transform/blob/v0.11.0/RELEASE.md) |1.11 |2.8.0 |
Expand Down
9 changes: 5 additions & 4 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- mdformat off(mdformat causes unwanted indentation changes) -->
# Current version (not yet released; still in development)
# Release 0.14.0

## Major Features and Improvements
* New `tft.word_count` mapper to identify the number of tokens for each row
Expand Down Expand Up @@ -49,16 +49,16 @@
* At test utility `tft_unit.cross_named_parameters` for creating parameterized
tests that involve the cartesian product of various parameters.
* Depends on `tensorflow-metadata>=0.14,<0.15`.
* Depends on `apache-beam[gcp]>=2.13,<3`.
* Depends on `apache-beam[gcp]>=2.14,<3`.
* Depends on `numpy>=1.16,<2`.
* Depends on `absl-py>=0.7,<2`.
* Allow `preprocessing_fn` to emit a `tf.RaggedTensor`. In this case, the
output `Schema` proto will not be able to be converted to a feature spec,
and so the output data will not be able to be materialized with `tft.coders`.
* Ability to directly set exact `num_buckets` with new parameter
`always_return_num_quantiles` for `analyzers.quantiles` and
`always_return_num_quantiles` for `analyzers.quantiles` and
`mappers.bucketize`, defaulting to False in general but True when
`reduce_instance_dims` is False
`reduce_instance_dims` is False.

## Breaking changes
* `tf_utils.reduce_batch_count_mean_and_var`, which feeds into
Expand All @@ -73,6 +73,7 @@
* Only explicitly public analyzers are exported to the `tft` module, e.g.
combiners are no longer exported and have to be accessed directly through
`tft.analyzers`.
* Requires pre-installed TensorFlow >=1.14,<2.

## Deprecations
* `DatasetSchema` is now a deprecated factory method (see above).
Expand Down
7 changes: 4 additions & 3 deletions docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,10 @@ The following table is the `tf.Transform` package versions that are
compatible with each other. This is determined by our testing framework, but
other *untested* combinations may also work.

tensorflow-transform | tensorflow | apache-beam[gcp]
------------------------------------------------------------------------------- | ------------- | ----------------
|[GitHub master](https://github.com/tensorflow/transform/blob/master/RELEASE.md) |nightly (1.x) |2.13.0 |
|tensorflow-transform |tensorflow |apache-beam[gcp]|
|--------------------------------------------------------------------------------|--------------|----------------|
|[GitHub master](https://github.com/tensorflow/transform/blob/master/RELEASE.md) |nightly (1.x) |2.14.0 |
|[0.14.0](https://github.com/tensorflow/transform/blob/v0.13.0/RELEASE.md) |1.14 |2.14.0 |
|[0.13.0](https://github.com/tensorflow/transform/blob/v0.13.0/RELEASE.md) |1.13 |2.11.0 |
|[0.12.0](https://github.com/tensorflow/transform/blob/v0.12.0/RELEASE.md) |1.12 |2.10.0 |
|[0.11.0](https://github.com/tensorflow/transform/blob/v0.11.0/RELEASE.md) |1.11 |2.8.0 |
Expand Down
8 changes: 3 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def _make_required_install_packages():
# six, and protobuf) with TF.
return [
'absl-py>=0.7,<2',
'apache-beam[gcp]>=2.13,<3',
'apache-beam[gcp]>=2.14,<3',
'numpy>=1.16,<2',
'protobuf>=3.7,<4',
'six>=1.10,<2',
Expand Down Expand Up @@ -71,10 +71,8 @@ def _make_required_install_packages():
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
# TODO(b/125613675): Once Beam supports Python 3.6 and 3.7, uncomment
# these lines.
# 'Programming Language :: Python :: 3.6',
# 'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Topic :: Scientific/Engineering :: Mathematics',
Expand Down
4 changes: 2 additions & 2 deletions tensorflow_transform/beam/impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,9 +448,9 @@ def process(self, batch, saved_model_dir):
def _assert_tensorflow_version():
# Fail with a clear error in case we are not using a compatible TF version.
major, minor, _ = tf.__version__.split('.')
if int(major) != 1 or int(minor) < 13:
if int(major) != 1 or int(minor) < 14:
raise RuntimeError(
'TensorFlow version >= 1.13, < 2 is required. Found (%s). Please '
'TensorFlow version >= 1.14, < 2 is required. Found (%s). Please '
'install the latest 1.x version from '
'https://github.com/tensorflow/tensorflow. ' % tf.__version__)

Expand Down
2 changes: 1 addition & 1 deletion tensorflow_transform/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
"""Contains the version string of TF.Transform."""

# Note that setup.py uses this version.
__version__ = '0.14.0dev'
__version__ = '0.14.0'

0 comments on commit 53c026e

Please sign in to comment.