Missed TensorFlow World? Check out the recap. Learn more

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