Skip to content

Commit

Permalink
Project import generated by Copybara.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 219695802
  • Loading branch information
tf-transform-team authored and zoyahav committed Nov 1, 2018
1 parent c8ee7f1 commit 527619c
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 17 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
20 changes: 11 additions & 9 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
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 @@ -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__)

Expand Down
6 changes: 3 additions & 3 deletions tensorflow_transform/output_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down

0 comments on commit 527619c

Please sign in to comment.