|TensorFlow 1 version||View source on GitHub|
A FIFOQueue that supports batching variable-sized tensors by padding.
Compat aliases for migration
See Migration guide for more details.
tf.queue.PaddingFIFOQueue( capacity, dtypes, shapes, names=None, shared_name=None, name='padding_fifo_queue' )
PaddingFIFOQueue may contain components with dynamic shape, while also
dequeue_many. See the constructor for more details.
tf.queue.QueueBase for a description of the methods on
||An integer. The upper bound on the number of elements that may be stored in this queue.|
A list of
A list of
(Optional.) A list of string naming the components in the queue
with the same length as
||(Optional.) If non-empty, this queue will be shared under the given name across multiple sessions.|
||Optional name for the queue operation.|
||If shapes is not a list of shapes, or the lengths of dtypes and shapes do not match, or if names is specified and the lengths of dtypes and names do not match.|
||The list of dtypes for each component of a queue element.|
||The name of the underlying queue.|
||The list of names for each component of a queue element.|
||The underlying queue reference.|
||The list of shapes for each component of a queue element.|
close( cancel_pending_enqueues=False, name=None )
Closes this queue.
This operation signals that no more elements will be enqueued in
the given queue. Subsequent
operations will fail. Subsequent
operations will continue to succeed if sufficient elements remain
in the queue. Subsequently dequeue and dequeue_many operations
that would otherwise block waiting for more elements (if close
hadn't been called) will now fail immediately.
True, all pending requests will also
(Optional.) A boolean, defaulting to
||A name for the operation (optional).|
|The operation that closes the queue.|
dequeue( name=None )
Dequeues one element from this queue.
If the queue is empty when this operation executes, it will block until there is an element to dequeue.
At runtime, this operation may raise an error if the queue is
tf.QueueBase.close before or during its execution. If the
queue is closed, the queue is empty, and there are no pending
enqueue operations that can fulfill this request,
tf.errors.OutOfRangeError will be raised. If the s