tensorflow:: ops:: Assign

#include <state_ops.h>

'ref'に'value'を代入して更新します。

まとめ

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

議論:

  • スコープ:スコープオブジェクト
  • 参照: Variableノードから取得する必要があります。初期化されていない可能性があります。
  • value: 変数に割り当てる値。

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

  • validate_shape: trueの場合、操作は「value」の形状が、割り当て先のテンソルの形状と一致するかどうかを検証します。falseの場合、「ref」は「value」の形状になります。
  • use_locking: Trueの場合、代入はロックによって保護されます。それ以外の場合は動作は未定義ですが、競合が少なくなる可能性があります。

返品:

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

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

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

公開属性

operation
output_ref

公的機能

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

パブリック静的関数

UseLocking (bool x)
ValidateShape (bool x)

構造

tensorflow:: ops:: Assign:: Attrs

Assignのオプションの属性セッター。

公開属性

手術

Operation operation

出力参照

::tensorflow::Output output_ref

公的機能

割り当てる

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

割り当てる

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

ノード

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

パブリック静的関数

ロックを使用する

Attrs UseLocking(
  bool x
)

形状の検証

Attrs ValidateShape(
  bool x
)