tf.lookup.TextFileIndex
| View source on GitHub |
The key and value content to get from each line.
This class defines the key and value used for tf.lookup.TextFileInitializer.
The key and value content to get from each line is specified either by the following, or a value >=0.
-
TextFileIndex.LINE_NUMBERmeans use the line number starting from zero, expects data type int64. -
TextFileIndex.WHOLE_LINEmeans use the whole line content, expects data type string.
A value >=0 means use the index (starting at zero) of the split line based on delimiter.
| Class Variables | |
|---|---|
| LINE_NUMBER | -1 |
| WHOLE_LINE | -2 |
© 2020 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/versions/r2.4/api_docs/python/tf/lookup/TextFileIndex