W3cubDocs

/TensorFlow Python

tf.python_io.tf_record_iterator

tf.python_io.tf_record_iterator(
    path,
    options=None
)

Defined in tensorflow/python/lib/io/tf_record.py.

See the guide: Data IO (Python functions)

An iterator that read the records from a TFRecords file.

Args:

  • path: The path to the TFRecords file.
  • options: (optional) A TFRecordOptions object.

Yields:

Strings.

Raises:

  • IOError: If path cannot be opened for reading.

© 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/python_io/tf_record_iterator