W3cubDocs

/TensorFlow Python

tf.contrib.lookup.string_to_index_table_from_tensor

tf.contrib.lookup.string_to_index_table_from_tensor(
    mapping,
    num_oov_buckets=0,
    default_value=-1,
    hasher_spec=tf.contrib.lookup.FastHashSpec,
    name=None
)

Defined in tensorflow/contrib/lookup/lookup_ops.py.

DEPRECATED FUNCTION

THIS FUNCTION IS DEPRECATED. It will be removed after 2017-04-10. Instructions for updating: Use index_table_from_tensor.

© 2018 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/contrib/lookup/string_to_index_table_from_tensor