tf.io.tf_record_iterator

Aliases:

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

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

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.