tensorflow:: ops:: AssignSub
#include <state_ops.h>「ref」から「value」を減算して、「ref」を更新します。
まとめ
この操作は、更新完了後に「ref」を出力します。これにより、リセット値を使用する必要のある操作を連鎖させやすくなります。
議論:
オプション属性( Attrs参照):
- use_locking: Trueの場合、減算はロックによって保護されます。それ以外の場合は動作は未定義ですが、競合が少なくなる可能性があります。
返品:
-
Output: = "ref" と同じです。変数が更新された後に新しい値を使用したい操作のために、便宜上返されます。
コンストラクターとデストラクタ | |
|---|---|
AssignSub (const :: tensorflow::Scope & scope, :: tensorflow::Input ref, :: tensorflow::Input value) | |
AssignSub (const :: tensorflow::Scope & scope, :: tensorflow::Input ref, :: tensorflow::Input value, const AssignSub::Attrs & attrs) |
公開属性 | |
|---|---|
operation | |
output_ref | |
公的機能 | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
パブリック静的関数 | |
|---|---|
UseLocking (bool x) | |
構造 | |
|---|---|
| tensorflow:: ops:: AssignSub:: Attrs | AssignSubのオプション属性セッター。 |
公開属性
手術
Operation operation
出力参照
::tensorflow::Output output_ref
公的機能
AssignSub
AssignSub( const ::tensorflow::Scope & scope, ::tensorflow::Input ref, ::tensorflow::Input value )
AssignSub
AssignSub( const ::tensorflow::Scope & scope, ::tensorflow::Input ref, ::tensorflow::Input value, const AssignSub::Attrs & attrs )
ノード
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
パブリック静的関数
ロックを使用する
Attrs UseLocking( bool x )