tensorflow::ops::QueueClose
#include <data_flow_ops.h>
Closes the given queue.
Summary
This operation signals that no more elements will be enqueued in the given queue. Subsequent Enqueue(Many) operations will fail. Subsequent Dequeue(Many) operations will continue to succeed if sufficient elements remain in the queue. Subsequent Dequeue(Many) operations that would block will fail immediately.
Arguments:
- scope: A Scope object
- handle: The handle to a queue.
Optional attributes (see Attrs
):
- cancel_pending_enqueues: If true, all pending enqueue requests that are blocked on the given queue will be canceled.
Returns:
- the created
Operation
Constructors and Destructors | |
---|---|
QueueClose(const ::tensorflow::Scope & scope, ::tensorflow::Input handle) | |
QueueClose(const ::tensorflow::Scope & scope, ::tensorflow::Input handle, const QueueClose::Attrs & attrs) |
Public attributes | |
---|---|
operation |
Public functions | |
---|---|
operator::tensorflow::Operation() const |
Public static functions | |
---|---|
CancelPendingEnqueues(bool x) |
Structs | |
---|---|
tensorflow::ops::QueueClose::Attrs | Optional attribute setters for QueueClose. |
Public attributes
operation
Operation operation
Public functions
QueueClose
QueueClose( const ::tensorflow::Scope & scope, ::tensorflow::Input handle )
QueueClose
QueueClose( const ::tensorflow::Scope & scope, ::tensorflow::Input handle, const QueueClose::Attrs & attrs )
operator::tensorflow::Operation
operator::tensorflow::Operation() const
Public static functions
CancelPendingEnqueues
Attrs CancelPendingEnqueues( bool x )
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.3/api_docs/cc/class/tensorflow/ops/queue-close