tf.QueueBase.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 enqueue and enqueue_many operations will fail. Subsequent dequeue and dequeue_many operations will continue to succeed if sufficient elements remain in the queue. Subsequent dequeue and dequeue_many operations that would block will fail immediately.
If cancel_pending_enqueues is True, all pending requests will also be cancelled.
Args:
-
cancel_pending_enqueues: (Optional.) A boolean, defaulting toFalse(described above). -
name: A name for the operation (optional).
Returns:
The operation that closes the queue.
Please login to continue.