From 527619c8b140e9d5cc2c54079aa2b64c301c2bc8 Mon Sep 17 00:00:00 2001 From: tf-transform-team Date: Thu, 1 Nov 2018 17:10:13 -0400 Subject: [PATCH] Project import generated by Copybara. PiperOrigin-RevId: 219695802 --- README.md | 3 ++- RELEASE.md | 20 +++++++++++--------- setup.py | 4 ++-- tensorflow_transform/beam/impl.py | 4 ++-- tensorflow_transform/output_wrapper.py | 6 +++--- 5 files changed, 20 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 47278214..54693867 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,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.6.0 | +|[GitHub master](https://github.com/tensorflow/transform/blob/master/RELEASE.md) |nightly (1.x) |2.8.0 | +|[0.11.0](https://github.com/tensorflow/transform/blob/v0.11.0/RELEASE.md) |1.11 |2.8.0 | |[0.9.0](https://github.com/tensorflow/transform/blob/v0.9.0/RELEASE.md) |1.9 |2.6.0 | |[0.8.0](https://github.com/tensorflow/transform/blob/v0.8.0/RELEASE.md) |1.8 |2.5.0 | |[0.6.0](https://github.com/tensorflow/transform/blob/v0.6.0/RELEASE.md) |1.6 |2.4.0 | diff --git a/RELEASE.md b/RELEASE.md index 47f88095..ca9c5a3a 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -1,19 +1,21 @@ -# Current version (not yet released; still in development) +# Release 0.11.0 ## Major Features and Improvements ## Bug Fixes and Other Changes -* 'tft.vocabulary' and 'tft.compute_and_apply_vocabulary' now support - filtering based on mutual information when `labels` is provided. -* Export all package level exports of `tensorflow_transform`, from the - `tensorflow_transform.beam` subpackage. This allows users to just import the - `tensorflow_transform.beam` subpackage for all functionality. -* Adding API docs -* Fix bug where Transform returned a different dtype for a VarLenFeature with - 0 elements. +* 'tft.vocabulary' and 'tft.compute_and_apply_vocabulary' now support filtering + based on mutual information when `labels` is provided. +* Export all package level exports of `tensorflow_transform`, from the + `tensorflow_transform.beam` subpackage. This allows users to just import the + `tensorflow_transform.beam` subpackage for all functionality. +* Adding API docs. +* Fix bug where Transform returned a different dtype for a VarLenFeature with + 0 elements. +* Depends on `apache-beam[gcp]>=2.8,<3`. ## Breaking changes +* Requires pre-installed TensorFlow >=1.11,<2. ## Deprecations * All functions in `tensorflow_transform.saved.input_fn_maker` are deprecated. diff --git a/setup.py b/setup.py index b9f24850..b3e2bcc1 100644 --- a/setup.py +++ b/setup.py @@ -17,13 +17,13 @@ from setuptools import setup # Tensorflow transform version. -__version__ = '0.10.0dev' +__version__ = '0.11.0' def _make_required_install_packages(): return [ 'absl-py>=0.1.6', - 'apache-beam[gcp]>=2.6,<3', + 'apache-beam[gcp]>=2.8,<3', 'numpy>=1.13.3,<2', # TF now requires protobuf>=3.6.0. diff --git a/tensorflow_transform/beam/impl.py b/tensorflow_transform/beam/impl.py index fd093b00..5935b0d0 100644 --- a/tensorflow_transform/beam/impl.py +++ b/tensorflow_transform/beam/impl.py @@ -405,9 +405,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) < 9: + if int(major) != 1 or int(minor) < 11: raise RuntimeError( - 'TensorFlow version >= 1.9, < 2 is required. Found (%s). Please ' + 'TensorFlow version >= 1.11, < 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/output_wrapper.py b/tensorflow_transform/output_wrapper.py index 254e8603..68a35cb4 100644 --- a/tensorflow_transform/output_wrapper.py +++ b/tensorflow_transform/output_wrapper.py @@ -77,9 +77,9 @@ def vocabulary_file_by_name(self, vocab_filename): Args: vocab_filename: The relative filename to lookup. """ - return os.path.join( - self.transform_savedmodel_dir, tf.saved_model.ASSETS_DIRECTORY, - vocab_filename) + return os.path.join(self.transform_savedmodel_dir, + tf.saved_model.constants.ASSETS_DIRECTORY, + vocab_filename) def vocabulary_size_by_name(self, vocab_filename): """Like vocabulary_file_by_name, but returns the size of vocabulary."""