tf.TFRecordReader.reset()

tf.TFRecordReader.reset(name=None) Restore a reader to its initial clean state. Args: name: A name for the operation (optional). Returns: The created Operation.

tf.TFRecordReader.read_up_to()

tf.TFRecordReader.read_up_to(queue, num_records, name=None) Returns up to num_records (key, value pairs) produced by a reader. Will dequeue a work unit from queue if necessary (e.g., when the Reader needs to start reading from a new file since it has finished with the previous file). It may return less than num_records even before the last batch. Args: queue: A Queue or a mutable string Tensor representing a handle to a Queue, with string work items. num_records: Number of records to read.

tf.TFRecordReader.reader_ref

tf.TFRecordReader.reader_ref Op that implements the reader.

tf.TFRecordReader.read()

tf.TFRecordReader.read(queue, name=None) Returns the next record (key, value pair) produced by a reader. Will dequeue a work unit from queue if necessary (e.g. when the Reader needs to start reading from a new file since it has finished with the previous file). Args: queue: A Queue or a mutable string Tensor representing a handle to a Queue, with string work items. name: A name for the operation (optional). Returns: A tuple of Tensors (key, value). key: A string scalar Tensor. value: A s

tf.TFRecordReader.num_work_units_completed()

tf.TFRecordReader.num_work_units_completed(name=None) Returns the number of work units this reader has finished processing. Args: name: A name for the operation (optional). Returns: An int64 Tensor.

tf.TFRecordReader.num_records_produced()

tf.TFRecordReader.num_records_produced(name=None) Returns the number of records this reader has produced. This is the same as the number of Read executions that have succeeded. Args: name: A name for the operation (optional). Returns: An int64 Tensor.

tf.TFRecordReader

class tf.TFRecordReader A Reader that outputs the records from a TFRecords file. See ReaderBase for supported methods.

tf.TextLineReader.__init__()

tf.TextLineReader.__init__(skip_header_lines=None, name=None) Create a TextLineReader. Args: skip_header_lines: An optional int. Defaults to 0. Number of lines to skip from the beginning of every file. name: A name for the operation (optional).

tf.TextLineReader.supports_serialize

tf.TextLineReader.supports_serialize Whether the Reader implementation can serialize its state.

tf.TextLineReader.serialize_state()

tf.TextLineReader.serialize_state(name=None) Produce a string tensor that encodes the state of a reader. Not all Readers support being serialized, so this can produce an Unimplemented error. Args: name: A name for the operation (optional). Returns: A string Tensor.