tf.real()

tf.real(input, name=None) Returns the real part of a complex number. Given a tensor input of complex numbers, this operation returns a tensor of type float32 or float64 that is the real part of each element in input. All elements in input must be complex numbers of the form (a + bj), where a is the real part returned by this operation and b is the imaginary part. For example: # tensor 'input' is [-2.25 + 4.75j, 3.25 + 5.75j] tf.real(input) ==> [-2.25, 3.25] If input is already real, it is

tf.read_file()

tf.read_file(filename, name=None) Reads and outputs the entire contents of the input filename. Args: filename: A Tensor of type string. name: A name for the operation (optional). Returns: A Tensor of type string.

tf.ReaderBase.__init__()

tf.ReaderBase.__init__(reader_ref, supports_serialize=False) Creates a new ReaderBase. Args: reader_ref: The operation that implements the reader. supports_serialize: True if the reader implementation can serialize its state.

tf.ReaderBase.supports_serialize

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

tf.ReaderBase.serialize_state()

tf.ReaderBase.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.ReaderBase.restore_state()

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

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

tf.ReaderBase.read_up_to()

tf.ReaderBase.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. name

tf.ReaderBase.reader_ref

tf.ReaderBase.reader_ref Op that implements the reader.

tf.ReaderBase.read()

tf.ReaderBase.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 strin