diff --git a/README.md b/README.md index d05c59a8..39f8bf1a 100644 --- a/README.md +++ b/README.md @@ -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 | diff --git a/RELEASE.md b/RELEASE.md index 2d0ac1a5..ee292bcb 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -1,5 +1,5 @@ -# 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 @@ -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 @@ -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). diff --git a/docs/install.md b/docs/install.md index ae0af5b2..1cd3d263 100644 --- a/docs/install.md +++ b/docs/install.md @@ -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 | diff --git a/setup.py b/setup.py index 1973b98a..1eafb601 100644 --- a/setup.py +++ b/setup.py @@ -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', @@ -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', diff --git a/tensorflow_transform/beam/impl.py b/tensorflow_transform/beam/impl.py index c2c849a7..d115d27e 100644 --- a/tensorflow_transform/beam/impl.py +++ b/tensorflow_transform/beam/impl.py @@ -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__) diff --git a/tensorflow_transform/version.py b/tensorflow_transform/version.py index e46b2114..c8f677b3 100644 --- a/tensorflow_transform/version.py +++ b/tensorflow_transform/version.py @@ -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'