Skip to content

Commit 527619c

Browse files
tf-transform-teamzoyahav
authored andcommitted
Project import generated by Copybara.
PiperOrigin-RevId: 219695802
1 parent c8ee7f1 commit 527619c

File tree

5 files changed

+20
-17
lines changed

5 files changed

+20
-17
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ other *untested* combinations may also work.
5555

5656
|tensorflow-transform |tensorflow |apache-beam[gcp]|
5757
|--------------------------------------------------------------------------------|--------------|----------------|
58-
|[GitHub master](https://github.com/tensorflow/transform/blob/master/RELEASE.md) |nightly (1.x) |2.6.0 |
58+
|[GitHub master](https://github.com/tensorflow/transform/blob/master/RELEASE.md) |nightly (1.x) |2.8.0 |
59+
|[0.11.0](https://github.com/tensorflow/transform/blob/v0.11.0/RELEASE.md) |1.11 |2.8.0 |
5960
|[0.9.0](https://github.com/tensorflow/transform/blob/v0.9.0/RELEASE.md) |1.9 |2.6.0 |
6061
|[0.8.0](https://github.com/tensorflow/transform/blob/v0.8.0/RELEASE.md) |1.8 |2.5.0 |
6162
|[0.6.0](https://github.com/tensorflow/transform/blob/v0.6.0/RELEASE.md) |1.6 |2.4.0 |

RELEASE.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
1-
# Current version (not yet released; still in development)
1+
# Release 0.11.0
22

33
## Major Features and Improvements
44

55
## Bug Fixes and Other Changes
66

7-
* 'tft.vocabulary' and 'tft.compute_and_apply_vocabulary' now support
8-
filtering based on mutual information when `labels` is provided.
9-
* Export all package level exports of `tensorflow_transform`, from the
10-
`tensorflow_transform.beam` subpackage. This allows users to just import the
11-
`tensorflow_transform.beam` subpackage for all functionality.
12-
* Adding API docs
13-
* Fix bug where Transform returned a different dtype for a VarLenFeature with
14-
0 elements.
7+
* 'tft.vocabulary' and 'tft.compute_and_apply_vocabulary' now support filtering
8+
based on mutual information when `labels` is provided.
9+
* Export all package level exports of `tensorflow_transform`, from the
10+
`tensorflow_transform.beam` subpackage. This allows users to just import the
11+
`tensorflow_transform.beam` subpackage for all functionality.
12+
* Adding API docs.
13+
* Fix bug where Transform returned a different dtype for a VarLenFeature with
14+
0 elements.
15+
* Depends on `apache-beam[gcp]>=2.8,<3`.
1516

1617
## Breaking changes
18+
* Requires pre-installed TensorFlow >=1.11,<2.
1719

1820
## Deprecations
1921
* All functions in `tensorflow_transform.saved.input_fn_maker` are deprecated.

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717
from setuptools import setup
1818

1919
# Tensorflow transform version.
20-
__version__ = '0.10.0dev'
20+
__version__ = '0.11.0'
2121

2222

2323
def _make_required_install_packages():
2424
return [
2525
'absl-py>=0.1.6',
26-
'apache-beam[gcp]>=2.6,<3',
26+
'apache-beam[gcp]>=2.8,<3',
2727
'numpy>=1.13.3,<2',
2828

2929
# TF now requires protobuf>=3.6.0.

tensorflow_transform/beam/impl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,9 +405,9 @@ def process(self, batch, saved_model_dir):
405405
def _assert_tensorflow_version():
406406
# Fail with a clear error in case we are not using a compatible TF version.
407407
major, minor, _ = tf.__version__.split('.')
408-
if int(major) != 1 or int(minor) < 9:
408+
if int(major) != 1 or int(minor) < 11:
409409
raise RuntimeError(
410-
'TensorFlow version >= 1.9, < 2 is required. Found (%s). Please '
410+
'TensorFlow version >= 1.11, < 2 is required. Found (%s). Please '
411411
'install the latest 1.x version from '
412412
'https://github.com/tensorflow/tensorflow. ' % tf.__version__)
413413

tensorflow_transform/output_wrapper.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ def vocabulary_file_by_name(self, vocab_filename):
7777
Args:
7878
vocab_filename: The relative filename to lookup.
7979
"""
80-
return os.path.join(
81-
self.transform_savedmodel_dir, tf.saved_model.ASSETS_DIRECTORY,
82-
vocab_filename)
80+
return os.path.join(self.transform_savedmodel_dir,
81+
tf.saved_model.constants.ASSETS_DIRECTORY,
82+
vocab_filename)
8383

8484
def vocabulary_size_by_name(self, vocab_filename):
8585
"""Like vocabulary_file_by_name, but returns the size of vocabulary."""

0 commit comments

Comments
 (0)