This operation converts int64 indices into string values. The mapping is
initialized from a string mapping tensor where each element is a value and
the corresponding index within the tensor is the key.
Any input which does not have a corresponding index in 'mapping'
(an out-of-vocabulary entry) is assigned the default_value
The underlying table must be initialized by calling
session.run(tf.compat.v1.tables_initializer) once.
[null,null,["Last updated 2020-10-01 UTC."],[],[],null,["# tf.contrib.lookup.index_to_string\n\n\u003cbr /\u003e\n\n|----------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/contrib/lookup/lookup_ops.py#L248-L291) |\n\nMaps `tensor` of indices into string values based on `mapping`. (deprecated) \n\n tf.contrib.lookup.index_to_string(\n tensor, mapping, default_value='UNK', name=None\n )\n\n| **Warning:** THIS FUNCTION IS DEPRECATED. It will be removed after 2017-01-07. Instructions for updating: This op will be removed after the deprecation date. Please switch to index_to_string_table_from_tensor and call the lookup method of the returned table.\n\nThis operation converts `int64` indices into string values. The mapping is\ninitialized from a string `mapping` tensor where each element is a value and\nthe corresponding index within the tensor is the key.\n\nAny input which does not have a corresponding index in 'mapping'\n(an out-of-vocabulary entry) is assigned the `default_value`\n\nThe underlying table must be initialized by calling\n`session.run(tf.compat.v1.tables_initializer)` once.\n\n#### For example:\n\n mapping_string = tf.constant([\"emerson\", \"lake\", \"palmer\"])\n indices = tf.constant([1, 5], tf.int64)\n values = tf.contrib.lookup.index_to_string(\n indices, mapping=mapping_string, default_value=\"UNKNOWN\")\n ...\n tf.compat.v1.tables_initializer().run()\n\n values.eval() ==\u003e [\"lake\", \"UNKNOWN\"]\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|-----------------|-----------------------------------------------------------------------|\n| `tensor` | A `int64` `Tensor` with the indices to map to strings. |\n| `mapping` | A 1-D string `Tensor` that specifies the strings to map from indices. |\n| `default_value` | The string value to use for out-of-vocabulary indices. |\n| `name` | A name for this op (optional). |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| The strings values associated to the indices. The resultant dense feature value tensor has the same shape as the corresponding `indices`. ||\n\n\u003cbr /\u003e"]]