tensorflow:: ops:: ResourceApplyAdagrad

#include <training_ops.h>

قم بتحديث '*var' وفقًا لمخطط adagrad.

ملخص

تراكم += غراد * غراد var -= lr * غراد * (1 / sqrt(accum))

الحجج:

  • النطاق: كائن النطاق
  • var: يجب أن يكون من نوع Variable().
  • accum: يجب أن يكون من متغير ().
  • lr: عامل القياس. يجب أن يكون قيمة عددية.
  • grad: التدرج.

السمات الاختيارية (انظر Attrs ):

  • استخدام القفل: إذا كانت 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

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

ResourceApplyAdagrad

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

operator::tensorflow::Operation

 operator::tensorflow::Operation() const 

الدوال الثابتة العامة

تحديث الفتحات

Attrs UpdateSlots(
  bool x
)

قفل الاستخدام

Attrs UseLocking(
  bool x
)