tensorflow:: ops:: ResourceApplyAdagrad

#include <training_ops.h>

'*var' を adagrad スキームに従って更新します。

まとめ

accum += grad * grad var -= lr * grad * (1 / sqrt(accum))

議論:

  • スコープ:スコープオブジェクト
  • var: Variable() から取得する必要があります。
  • accum: Variable() から取得する必要があります。
  • lr: スケーリング係数。スカラー値である必要があります。
  • grad: 勾配。

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

  • use_locking: Trueの場合、var および accum テンソルの更新はロックによって保護されます。それ以外の場合は動作は未定義ですが、競合が少なくなる可能性があります。

返品:

構築者と破壊者

ResourceApplyAdagrad (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input accum, :: tensorflow::Input lr, :: tensorflow::Input grad)
ResourceApplyAdagrad (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input accum, :: tensorflow::Input lr, :: tensorflow::Input grad, const ResourceApplyAdagrad::Attrs & attrs)

公開属性

operation

公的機能

operator::tensorflow::Operation () const

パブリック静的関数

UpdateSlots (bool x)
UseLocking (bool x)

構造

tensorflow:: ops:: ResourceApplyAdagrad:: Attrs

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

公開属性

手術

Operation operation

公的機能

リソース適用アダグラッド

 ResourceApplyAdagrad(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input var,
  ::tensorflow::Input accum,
  ::tensorflow::Input lr,
  ::tensorflow::Input grad
)

リソース適用アダグラッド

 ResourceApplyAdagrad(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input var,
  ::tensorflow::Input accum,
  ::tensorflow::Input lr,
  ::tensorflow::Input grad,
  const ResourceApplyAdagrad::Attrs & attrs
)

オペレーター::tensorflow::Operation

 operator::tensorflow::Operation() const 

パブリック静的関数

スロットの更新

Attrs UpdateSlots(
  bool x
)

ロックを使用する

Attrs UseLocking(
  bool x
)