tensorflow:: ops:: PriorityQueue
#include <data_flow_ops.h>最初の要素値に基づいてソートされた要素を生成するキュー。
まとめ
PriorityQueueでは、component_typesで宣言された他の要素に加えて、すべての要素の最初のコンポーネントがスカラーint64である必要があることに注意してください。したがって、 PriorityQueueに対するEnqueueおよびEnqueueMany(またはDequeueおよびDequeueMany)の呼び出しでは、入力(または出力)リストにそれぞれ1つの追加エントリが必要になります。
議論:
- スコープ:スコープオブジェクト
- shapes: 値内の各コンポーネントの形状。この属性の長さは、0 または component_types の長さと同じである必要があります。この属性の長さが 0 の場合、キュー要素の形状は制約されず、一度に 1 つの要素しか取り出すことができません。
オプション属性( Attrs参照):
- component_types: 値に含まれる各コンポーネントのタイプ。
- 容量:このキューに格納できる要素数の上限。負の値は制限なしを意味します。
- コンテナ:空でない場合、このキューは指定されたコンテナに配置されます。空でない場合は、デフォルトのコンテナが使用されます。
- shared_name: 空でない場合、このキューは指定された名前で複数のセッション間で共有されます。
返品:
-
Output:キューへのハンドル。
コンストラクターとデストラクタ | |
|---|---|
PriorityQueue (const :: tensorflow::Scope & scope, const gtl::ArraySlice< PartialTensorShape > & shapes) | |
PriorityQueue (const :: tensorflow::Scope & scope, const gtl::ArraySlice< PartialTensorShape > & shapes, const PriorityQueue::Attrs & attrs) |
公開属性 | |
|---|---|
handle | |
operation | |
公的機能 | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
パブリック静的関数 | |
|---|---|
Capacity (int64 x) | |
ComponentTypes (const DataTypeSlice & x) | |
Container (StringPiece x) | |
SharedName (StringPiece x) | |
構造 | |
|---|---|
| tensorflow:: ops:: PriorityQueue:: Attrs | PriorityQueueのオプション属性セッター。 |
公開属性
ハンドル
::tensorflow::Output handle
手術
Operation operation
公的機能
優先キュー
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
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
パブリック静的関数
容量
Attrs Capacity( int64 x )
コンポーネントタイプ
Attrs ComponentTypes( const DataTypeSlice & x )
容器
Attrs Container( StringPiece x )
共有名
Attrs SharedName( StringPiece x )