|TensorFlow 1 version||View source on GitHub|
A queue implementation that dequeues elements in first-in first-out order.
Compat aliases for migration
See Migration guide for more details.
tf.queue.FIFOQueue( capacity, dtypes, shapes=None, names=None, shared_name=None, name='fifo_queue' )
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
(Optional.) A list of fully-defined
(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.|
||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,