Type QueueBase
Namespace tensorflow
Parent PythonObjectContainer
Interfaces IQueueBase
Base class for queue implementations. A queue is a TensorFlow data structure that stores tensors across
multiple steps, and exposes operations that enqueue and dequeue
tensors. Each queue element is a tuple of one or more tensors, where each
tuple component has a static dtype, and may have a static shape. The
queue implementations support versions of enqueue and dequeue that
handle single elements, versions that support enqueuing and
dequeuing a batch of elements at once. See
tf.queue.FIFOQueue
and
tf.queue.RandomShuffleQueue
for concrete
implementations of this class, and instructions on how to create
them.
Methods
- close
- close_dyn
- dequeue
- dequeue_dyn
- dequeue_many
- dequeue_many
- dequeue_many_dyn
- dequeue_up_to
- dequeue_up_to
- dequeue_up_to
- dequeue_up_to
- dequeue_up_to
- dequeue_up_to
- dequeue_up_to_dyn
- enqueue
- enqueue
- enqueue_dyn
- enqueue_many
- enqueue_many
- enqueue_many
- enqueue_many_dyn
- from_list
- from_list
- from_list_dyn
- is_closed
- is_closed_dyn
Properties
Public instance methods
object close(bool cancel_pending_enqueues, string name)
Closes the barrier and the FIFOQueue. This operation signals that no more segments of new sequences will be
enqueued. New segments of already inserted sequences may still be enqueued
and dequeued if there is a sufficient number filling a batch or
allow_small_batch is true. Otherwise dequeue operations will fail
immediately.
Parameters
-
bool
cancel_pending_enqueues - (Optional.) A boolean, defaulting to `False`. If `True`, all pending enqueues to the underlying queues will be cancelled, and completing already started sequences is not possible.
-
string
name - Optional name for the op.
Returns
-
object
- The operation that closes the barrier and the FIFOQueue.
object close_dyn(ImplicitContainer<T> cancel_pending_enqueues, object name)
Closes the barrier and the FIFOQueue. This operation signals that no more segments of new sequences will be
enqueued. New segments of already inserted sequences may still be enqueued
and dequeued if there is a sufficient number filling a batch or
allow_small_batch is true. Otherwise dequeue operations will fail
immediately.
Parameters
-
ImplicitContainer<T>
cancel_pending_enqueues - (Optional.) A boolean, defaulting to `False`. If `True`, all pending enqueues to the underlying queues will be cancelled, and completing already started sequences is not possible.
-
object
name - Optional name for the op.
Returns
-
object
- The operation that closes the barrier and the FIFOQueue.