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

#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 بواسطة قفل؛ وإلا فإن السلوك غير محدد، ولكنه قد يحمل قدرًا أقل من الخلاف.

عائدات:

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

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

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

operation

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

operator::tensorflow::Operation () const

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

UpdateSlots (bool x)
UseLocking (bool x)

الهياكل

Tensorflow:: ops:: ResourceSparseApplyAdagrad:: Attrs

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

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

عملية

Operation operation

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

ResourceSparseApplyAdagrad

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

ResourceSparseApplyAdagrad

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

المشغل::tensorflow::Operation

 operator::tensorflow::Operation() const 

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

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

Attrs UpdateSlots(
  bool x
)

UseLocking

Attrs UseLocking(
  bool x
)