tensorflow:: ops:: AssignAdd

#include <state_ops.h>

「ref」に「value」を追加して更新します。

まとめ

この操作は、更新完了後に「ref」を出力します。これにより、リセット値を使用する必要のある操作を連鎖させやすくなります。

議論:

  • スコープ:スコープオブジェクト
  • 参照: Variableノードから取得する必要があります。
  • value: 変数に加算される値。

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

  • use_locking: Trueの場合、追加操作はロックによって保護されます。それ以外の場合は動作は未定義ですが、競合が少なくなる可能性があります。

返品:

  • Output : = "ref" と同じです。変数が更新された後に新しい値を使用したい操作のために、便宜上返されます。

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

AssignAdd (const :: tensorflow::Scope & scope, :: tensorflow::Input ref, :: tensorflow::Input value)
AssignAdd (const :: tensorflow::Scope & scope, :: tensorflow::Input ref, :: tensorflow::Input value, const AssignAdd::Attrs & attrs)

公開属性

operation
output_ref

公的機能

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

パブリック静的関数

UseLocking (bool x)

構造

tensorflow:: ops:: AssignAdd:: Attrs

AssignAddのオプションの属性設定子。

公開属性

手術

Operation operation

出力参照

::tensorflow::Output output_ref

公的機能

割り当て追加

 AssignAdd(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input ref,
  ::tensorflow::Input value
)

割り当て追加

 AssignAdd(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input ref,
  ::tensorflow::Input value,
  const AssignAdd::Attrs & attrs
)

ノード

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

パブリック静的関数

ロックを使用する

Attrs UseLocking(
  bool x
)