tensorflow :: ops ::変数
#include <state_ops.h>
ステップ間で持続するテンソルの形で状態を保持します。
概要
参照をテンソル状態に出力して、読み取りまたは変更できるようにします。 TODO(zhifengc / mrry):テンソルフローでの状態の共有に関するより詳細なドキュメントへのポインターを追加します。
引数:
- スコープ:スコープオブジェクト
- shape:可変テンソルの形状。
- dtype:変数テンソルの要素のタイプ。
オプションの属性(参照Attrs
):
- コンテナ:空でない場合、この変数は指定されたコンテナに配置されます。それ以外の場合は、デフォルトのコンテナが使用されます。
- 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 | 変数のオプションの属性セッター。 |
パブリック属性
操作
Operation operation
ref
::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 )
SharedName
Attrs SharedName( StringPiece x )