tf.zeros_like()

tf.zeros_like(tensor, dtype=None, name=None, optimize=True) Creates a tensor with all elements set to zero. Given a single tensor (tensor), this operation returns a tensor of the same type and shape as tensor with all elements set to zero. Optionally, you can use dtype to specify a new type for the returned tensor. For example: # 'tensor' is [[1, 2, 3], [4, 5, 6]] tf.zeros_like(tensor) ==> [[0, 0, 0], [0, 0, 0]] Args: tensor: A Tensor. dtype: A type for the returned Tensor. Must be float3

tf.zeros()

tf.zeros(shape, dtype=tf.float32, name=None) Creates a tensor with all elements set to zero. This operation returns a tensor of type dtype with shape shape and all elements set to zero. For example: tf.zeros([3, 4], int32) ==> [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]] Args: shape: Either a list of integers, or a 1-D Tensor of type int32. dtype: The type of an element in the resulting Tensor. name: A name for the operation (optional). Returns: A Tensor with all elements set to zero.

tf.WholeFileReader.__init__()

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

tf.WholeFileReader.supports_serialize

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

tf.WholeFileReader.serialize_state()

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

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

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

tf.WholeFileReader.read_up_to()

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

tf.WholeFileReader.reader_ref Op that implements the reader.

tf.WholeFileReader.read()

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