tensorflow:: ops:: 変数
#include <state_ops.h>ステップをまたいで保持されるテンソルの形式で状態を保持します。
まとめ
テンソル状態への参照を出力し、読み取りまたは変更できるようにします。TODO(zhifengc/mrry): TensorFlow で状態を共有することに関するより詳細なドキュメントへのポインタを追加します。
議論:
- スコープ:スコープオブジェクト
- shape: 変数テンソルの形状。
- dtype: 変数テンソル内の要素の型。
オプション属性( Attrs参照):
- container: 空でない場合、この変数は指定されたコンテナに格納されます。空でない場合は、デフォルトのコンテナが使用されます。
- shared_name: 空でない場合、この変数は指定されたバケット内でこの shared_name という名前で命名されます。空でない場合は、代わりにノード名が使用されます。
返品:
-
Output:変数テンソルへの参照。
コンストラクターとデストラクタ | |
|---|---|
Variable (const :: tensorflow::Scope & scope, PartialTensorShape shape, DataType dtype) | |
Variable (const :: tensorflow::Scope & scope, PartialTensorShape shape, DataType dtype, const Variable::Attrs & attrs) |
公開属性 | |
|---|---|
operation | |
ref | |
公的機能 | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
パブリック静的関数 | |
|---|---|
Container (StringPiece x) | |
SharedName (StringPiece x) | |
構造 | |
|---|---|
| tensorflow:: ops:: Variable:: Attrs | Variableのオプション属性セッター。 |
公開属性
手術
Operation operation
参照
::tensorflow::Output ref
公的機能
変数
Variable( const ::tensorflow::Scope & scope, PartialTensorShape shape, DataType dtype )
変数
Variable( const ::tensorflow::Scope & scope, PartialTensorShape shape, DataType dtype, const Variable::Attrs & attrs )
ノード
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
パブリック静的関数
容器
Attrs Container( StringPiece x )
共有名
Attrs SharedName( StringPiece x )