tf.TextLineReader.restore_state()

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

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

tf.TextLineReader.reader_ref

tf.TextLineReader.reader_ref Op that implements the reader.

tf.TextLineReader.read_up_to()

tf.TextLineReader.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.TextLineReader.read()

tf.TextLineReader.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.TextLineReader.num_records_produced()

tf.TextLineReader.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.TextLineReader.num_work_units_completed()

tf.TextLineReader.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.test.compute_gradient_error()

tf.test.compute_gradient_error(x, x_shape, y, y_shape, x_init_value=None, delta=0.001, init_targets=None) Computes the gradient error. Computes the maximum error for dy/dx between the computed Jacobian and the numerically estimated Jacobian. This function will modify the tensors passed in as it adds more operations and hence changing the consumers of the operations of the input tensors. This function adds operations to the current session. To compute the error using a particular device, such a

tf.test.is_built_with_cuda()

tf.test.is_built_with_cuda() Returns whether TensorFlow was built with CUDA (GPU) support.

tf.test.main()

tf.test.main() Runs all unit tests.