#include <data_flow_ops.h>
A queue that produces elements sorted by the first component value.
Note that the PriorityQueue requires the first component of any element to be a scalar int64, in addition to the other elements declared by component_types. Therefore calls to Enqueue and EnqueueMany (resp. Dequeue and DequeueMany) on a PriorityQueue will all require (resp. output) one extra entry in their input (resp. output) lists.
Arguments:
Optional attributes (see Attrs
):
Returns:
Output
: The handle to the queue. Constructors and Destructors | |
---|---|
PriorityQueue(const ::tensorflow::Scope & scope, const gtl::ArraySlice< PartialTensorShape > & shapes) | |
PriorityQueue(const ::tensorflow::Scope & scope, const gtl::ArraySlice< PartialTensorShape > & shapes, const PriorityQueue::Attrs & attrs) |
Public attributes | |
---|---|
handle |
Public functions | |
---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const |
Public static functions | |
---|---|
Capacity(int64 x) | |
ComponentTypes(const DataTypeSlice & x) | |
Container(StringPiece x) | |
SharedName(StringPiece x) |
Structs | |
---|---|
tensorflow::ops::PriorityQueue::Attrs | Optional attribute setters for PriorityQueue. |
::tensorflow::Output handle
PriorityQueue( const ::tensorflow::Scope & scope, const gtl::ArraySlice< PartialTensorShape > & shapes )
PriorityQueue( const ::tensorflow::Scope & scope, const gtl::ArraySlice< PartialTensorShape > & shapes, const PriorityQueue::Attrs & attrs )
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operator::tensorflow::Output() const
Attrs Capacity( int64 x )
Attrs ComponentTypes( const DataTypeSlice & x )
Attrs Container( StringPiece x )
Attrs SharedName( StringPiece x )
© 2017 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/api_docs/cc/class/tensorflow/ops/priority-queue.html