#include <data_flow_ops.h>
Dequeues n
tuples of one or more tensors from the given queue.
This operation is not supported by all queues. If a queue does not support DequeueUpTo, then an Unimplemented error is returned.
If the queue is closed and there are more than 0 but less than n
elements remaining, then instead of returning an OutOfRange error like QueueDequeueMany, less than n
elements are returned immediately. If the queue is closed and there are 0 elements left in the queue, then an OutOfRange error is returned just like in QueueDequeueMany. Otherwise the behavior is identical to QueueDequeueMany:
This operation concatenates queue-element component tensors along the 0th dimension to make a single component tensor. All of the components in the dequeued tuple will have size n in the 0th dimension.
This operation has k
outputs, where k
is the number of components in the tuples stored in the given queue, and output i
is the ith component of the dequeued tuple.
Arguments:
Optional attributes (see Attrs
):
Returns:
OutputList
: One or more tensors that were dequeued as a tuple. Constructors and Destructors | |
---|---|
QueueDequeueUpTo(const ::tensorflow::Scope & scope, ::tensorflow::Input handle, ::tensorflow::Input n, const DataTypeSlice & component_types) | |
QueueDequeueUpTo(const ::tensorflow::Scope & scope, ::tensorflow::Input handle, ::tensorflow::Input n, const DataTypeSlice & component_types, const QueueDequeueUpTo::Attrs & attrs) |
Public attributes | |
---|---|
components | |
operation |
Public functions | |
---|---|
operator[](size_t index) const |
Public static functions | |
---|---|
TimeoutMs(int64 x) |
Structs | |
---|---|
tensorflow::ops::QueueDequeueUpTo::Attrs | Optional attribute setters for QueueDequeueUpTo. |
::tensorflow::OutputList components
Operation operation
QueueDequeueUpTo( const ::tensorflow::Scope & scope, ::tensorflow::Input handle, ::tensorflow::Input n, const DataTypeSlice & component_types )
QueueDequeueUpTo( const ::tensorflow::Scope & scope, ::tensorflow::Input handle, ::tensorflow::Input n, const DataTypeSlice & component_types, const QueueDequeueUpTo::Attrs & attrs )
::tensorflow::Output operator[]( size_t index ) const
Attrs TimeoutMs( int64 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-dequeue-up-to