テンソルフロー::作戦::優先キュー

#include <data_flow_ops.h>

最初のコンポーネント値でソートされた要素を生成するキュー。

まとめ

PriorityQueue では、 component_types で宣言された他の要素に加えて、要素の最初のコンポーネントがスカラー int64 である必要があることに注意してください。したがって、 PriorityQueueでの Enqueue および EnqueueMany (それぞれ Dequeue および DequeueMany) の呼び出しには、入力 (または出力) リストに 1 つの追加のエントリ (または出力) が必要になります。

引数:

  • スコープ:スコープオブジェクト
  • 形状: 値の各コンポーネントの形状。この属性の長さは 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 

演算子::tensorflow::入力

 operator::tensorflow::Input() const 

演算子::tensorflow::出力

 operator::tensorflow::Output() const 

パブリック静的関数

容量

Attrs Capacity(
  int64 x
)

コンポーネントの種類

Attrs ComponentTypes(
  const DataTypeSlice & x
)

容器

Attrs Container(
  StringPiece x
)

共有名

Attrs SharedName(
  StringPiece x
)