tensorflow:: ops:: PriorityQueue
#include <data_flow_ops.h>
A queue that produces elements sorted by the first component value.
Summary
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:
- scope: A Scope object
- shapes: The shape of each component in a value. The length of this attr must be either 0 or the same as the length of component_types. If the length of this attr is 0, the shapes of queue elements are not constrained, and only one element may be dequeued at a time.
Optional attributes (see Attrs
):
- component_types: The type of each component in a value.
- capacity: The upper bound on the number of elements in this queue. Negative numbers mean no limit.
- container: If non-empty, this queue is placed in the given container. Otherwise, a default container is used.
- shared_name: If non-empty, this queue will be shared under the given name across multiple sessions.
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
|
|
operation
|
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:: |
Optional attribute setters for PriorityQueue. |
Public attributes
handle
::tensorflow::Output handle
operation
Operation operation
Public functions
PriorityQueue
PriorityQueue( const ::tensorflow::Scope & scope, const gtl::ArraySlice< PartialTensorShape > & shapes )
PriorityQueue
PriorityQueue( const ::tensorflow::Scope & scope, const gtl::ArraySlice< PartialTensorShape > & shapes, const PriorityQueue::Attrs & attrs )
node
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Public static functions
Capacity
Attrs Capacity( int64 x )
ComponentTypes
Attrs ComponentTypes( const DataTypeSlice & x )
Container
Attrs Container( StringPiece x )
SharedName
Attrs SharedName( StringPiece x )