نشكرك على متابعة Google I / O. عرض جميع الجلسات عند الطلب مشاهدة عند الطلب

تينسورفلو :: العمليات :: ResourceApplyAddSign

#include <training_ops.h>

قم بتحديث "* var" وفقًا لتحديث AddSign.

ملخص

m_t <- beta1 * m_ {t-1} + (1 - beta1) * g update <- (alpha + sign_decay * sign (g) * sign (m)) * g متغير <- متغير - lr_t * تحديث

الحجج:

  • النطاق: كائن النطاق
  • var: يجب أن يكون من متغير ().
  • م: يجب أن يكون من المتغير ().
  • lr: عامل التحجيم. يجب أن يكون عددًا.
  • ألفا: يجب أن يكون عددًا.
  • Sign_decay: يجب أن يكون عددًا.
  • بيتا: يجب أن يكون عددًا.
  • غراد: التدرج.

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

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

عائدات:

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

ResourceApplyAddSign (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input m, :: tensorflow::Input lr, :: tensorflow::Input alpha, :: tensorflow::Input sign_decay, :: tensorflow::Input beta, :: tensorflow::Input grad)
ResourceApplyAddSign (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input m, :: tensorflow::Input lr, :: tensorflow::Input alpha, :: tensorflow::Input sign_decay, :: tensorflow::Input beta, :: tensorflow::Input grad, const ResourceApplyAddSign::Attrs & attrs)

السمات العامة

operation

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

operator::tensorflow::Operation () const

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

UseLocking (bool x)

الهياكل

tensorflow :: ops :: ResourceApplyAddSign :: Attrs

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

السمات العامة

عملية

Operation operation

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

ResourceApplyAddSign

 ResourceApplyAddSign(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input var,
  ::tensorflow::Input m,
  ::tensorflow::Input lr,
  ::tensorflow::Input alpha,
  ::tensorflow::Input sign_decay,
  ::tensorflow::Input beta,
  ::tensorflow::Input grad
)

ResourceApplyAddSign

 ResourceApplyAddSign(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input var,
  ::tensorflow::Input m,
  ::tensorflow::Input lr,
  ::tensorflow::Input alpha,
  ::tensorflow::Input sign_decay,
  ::tensorflow::Input beta,
  ::tensorflow::Input grad,
  const ResourceApplyAddSign::Attrs & attrs
)

المشغل :: Tensorflow :: العملية

 operator::tensorflow::Operation() const 

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

UseLocking

Attrs UseLocking(
  bool x
)