diff options
-rw-r--r-- | tensorflow/contrib/lookup/lookup_ops.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tensorflow/contrib/lookup/lookup_ops.py b/tensorflow/contrib/lookup/lookup_ops.py index d5d413c56a..f0f1c14fca 100644 --- a/tensorflow/contrib/lookup/lookup_ops.py +++ b/tensorflow/contrib/lookup/lookup_ops.py @@ -97,7 +97,7 @@ def index_table_from_tensor(mapping, Sample Usages: ```python - mapping_strings = t.constant(["emerson", "lake", "palmer"]) + mapping_strings = tf.constant(["emerson", "lake", "palmer"]) table = tf.contrib.lookup.index_table_from_tensor( mapping=mapping_strings, num_oov_buckets=1, default_value=-1) features = tf.constant(["emerson", "lake", "and", "palmer"]) @@ -208,7 +208,7 @@ def index_to_string_table_from_tensor(mapping, default_value="UNK", name=None): Sample Usages: ```python - mapping_string = t.constant(["emerson", "lake", "palmer") + mapping_string = tf.constant(["emerson", "lake", "palmer"]) indices = tf.constant([1, 5], tf.int64) table = tf.contrib.lookup.index_to_string_table_from_tensor( mapping_string, default_value="UNKNOWN") @@ -260,7 +260,7 @@ def index_to_string(tensor, mapping, default_value="UNK", name=None): For example: ```python - mapping_string = t.constant(["emerson", "lake", "palmer") + mapping_string = tf.constant(["emerson", "lake", "palmer"]) indices = tf.constant([1, 5], tf.int64) values = tf.contrib.lookup.index_to_string( indices, mapping=mapping_string, default_value="UNKNOWN") |