tensorflow:: ops:: ResourceSparseApplyAdagrad

#include <training_ops.h>

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

ملخص

بالنسبة للصفوف التي لدينا تدرج لها، نقوم بتحديث التباين والتراكم كما يلي: التراكم += التدرج * التدرج، التباين -= معدل التعلم * التدرج * (1 / جذر(التراكم))

الحجج:

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

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

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

operator::tensorflow::Operation

 operator::tensorflow::Operation() const 

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

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

Attrs UpdateSlots(
  bool x
)

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

Attrs UseLocking(
  bool x
)