テンソルフロー::作戦::バリア

#include <data_flow_ops.h>

異なるグラフ実行にわたって持続するバリアを定義します。

まとめ

バリアはキーと値のマップを表します。ここで、各キーは文字列であり、各値はテンソルのタプルです。

実行時には、バリアには「完全」要素と「不完全」要素が含まれます。完全な要素には、その値タプルのすべてのコンポーネントのテンソルが定義されており、 BarrierTakeManyを使用してアクセスできます。不完全な要素の値タプルには未定義のコンポーネントがいくつかあり、 BarrierInsertMany を使用して更新される可能性があります。

引数:

  • スコープ:スコープオブジェクト
  • Component_types: 値内の各コンポーネントのタイプ。

オプションの属性 ( Attrsを参照):

  • 形状: 値の各コンポーネントの形状。各形状の最初の次元は 1 でなければなりません。この属性の長さは、component_types の長さと同じである必要があります。
  • 容量: バリアの容量。デフォルトの容量は MAX_INT32 で、これは基礎となるキューの最大容量です。
  • コンテナ: 空でない場合、このバリアは指定されたコンテナに配置されます。それ以外の場合は、デフォルトのコンテナが使用されます。
  • shared_name: 空でない場合、このバリアは指定された名前で複数のセッション間で共有されます。

戻り値:

  • Output : バリアへのハンドル。

コンストラクターとデストラクター

Barrier (const :: tensorflow::Scope & scope, const DataTypeSlice & component_types)
Barrier (const :: tensorflow::Scope & scope, const DataTypeSlice & component_types, const Barrier::Attrs & attrs)

パブリック属性

handle
operation

公共機能

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

パブリック静的関数

Capacity (int64 x)
Container (StringPiece x)
Shapes (const gtl::ArraySlice< PartialTensorShape > & x)
SharedName (StringPiece x)

構造体

tensorflow:: ops:: Barrier:: Attrs

Barrierのオプションの属性セッター。

パブリック属性

ハンドル

::tensorflow::Output handle

手術

Operation operation

公共機能

バリア

 Barrier(
  const ::tensorflow::Scope & scope,
  const DataTypeSlice & component_types
)

バリア

 Barrier(
  const ::tensorflow::Scope & scope,
  const DataTypeSlice & component_types,
  const Barrier::Attrs & attrs
)

ノード

::tensorflow::Node * node() const 

演算子::tensorflow::入力

 operator::tensorflow::Input() const 

演算子::tensorflow::出力

 operator::tensorflow::Output() const 

パブリック静的関数

容量

Attrs Capacity(
  int64 x
)

容器

Attrs Container(
  StringPiece x
)

形状

Attrs Shapes(
  const gtl::ArraySlice< PartialTensorShape > & x
)

共有名

Attrs SharedName(
  StringPiece x
)