tensorflow:: ops:: バリア
#include <data_flow_ops.h>異なるグラフ実行間で持続するバリアを定義します。
まとめ
バリアはキーと値のマップを表し、各キーは文字列、各値はテンソルのタプルです。
実行時、バリアには「完全な」要素と「不完全な」要素が含まれます。完全な要素は、その値タプルのすべてのコンポーネントに対してテンソルが定義されており、 BarrierTakeManyを使用してアクセスできます。不完全な要素は、その値タプルに未定義のコンポーネントが含まれており、 BarrierInsertMany を使用して更新できます。
議論:
- スコープ:スコープオブジェクト
- component_types: 値に含まれる各コンポーネントのタイプ。
オプション属性( Attrs参照):
- shapes: 値内の各コンポーネントの形状。各形状は、最初の次元で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
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
パブリック静的関数
容量
Attrs Capacity( int64 x )
容器
Attrs Container( StringPiece x )
形状
Attrs Shapes( const gtl::ArraySlice< PartialTensorShape > & x )
共有名
Attrs SharedName( StringPiece x )