تدفق التوتر:: العمليات:: SparseApplyAdagrad

#include <training_ops.h>

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

ملخص

هذا بالنسبة للصفوف التي تم تخريجها، نقوم بتحديث var وaccum كما يلي: $$accum += grad * grad$$ $$var -= lr * grad * (1 / sqrt(accum))$$

الحجج:

  • النطاق: كائن النطاق
  • فار: يجب أن يكون من متغير ().
  • تراكم: يجب أن يكون من متغير ().
  • ل: معدل التعلم. يجب أن يكون العددية.
  • غراد: التدرج.
  • المؤشرات: متجه للمؤشرات في البعد الأول من var وaccum.

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

  • use_locking: إذا كان True ، فسيتم حماية تحديث موترتي var وaccum بواسطة قفل؛ وإلا فإن السلوك غير محدد، ولكنه قد يحمل قدرًا أقل من الخلاف.

عائدات:

البنائين والمدمرين

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

الصفات العامة

operation
out

الوظائف العامة

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

وظائف ثابتة العامة

UpdateSlots (bool x)
UseLocking (bool x)

الهياكل

Tensorflow:: ops:: SparseApplyAdagrad:: Attrs

محددات السمات الاختيارية لـ SparseApplyAdagrad .

الصفات العامة

عملية

Operation operation

خارج

::tensorflow::Output out

الوظائف العامة

SparseApplyAdagrad

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

SparseApplyAdagrad

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

العقدة

::tensorflow::Node * node() const 

المشغل::tensorflow::الإدخال

 operator::tensorflow::Input() const 

المشغل::tensorflow::الإخراج

 operator::tensorflow::Output() const 

وظائف ثابتة العامة

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

Attrs UpdateSlots(
  bool x
)

UseLocking

Attrs UseLocking(
  bool x
)