tf.IdentityReader.__init__()

tf.IdentityReader.__init__(name=None) Create a IdentityReader. Args: name: A name for the operation (optional).

tf.IdentityReader.serialize_state()

tf.IdentityReader.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.

tf.IdentityReader.supports_serialize

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

tf.IdentityReader.restore_state()

tf.IdentityReader.restore_state(state, name=None) Restore a reader to a previously saved state. Not all Readers support being restored, so this can produce an Unimplemented error. Args: state: A string Tensor. Result of a SerializeState of a Reader with matching type. name: A name for the operation (optional). Returns: The created Operation.

tf.IdentityReader.read_up_to()

tf.IdentityReader.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.IdentityReader.reset()

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

tf.IdentityReader.read()

tf.IdentityReader.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.IdentityReader.reader_ref

tf.IdentityReader.reader_ref Op that implements the reader.

tf.IdentityReader.num_work_units_completed()

tf.IdentityReader.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.get_session_tensor()

tf.get_session_tensor(handle, dtype, name=None) Get the tensor of type dtype by feeding a tensor handle. This is EXPERIMENTAL and subject to change. Get the value of the tensor from a tensor handle. The tensor is produced in a previous run() and stored in the state of the session. Args: handle: The string representation of a persistent tensor handle. dtype: The type of the output tensor. name: Optional name prefix for the return tensor. Returns: A pair of tensors. The first is a placehold