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

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

#include <training_ops.h>

تحديث "* var" كخوارزمية FOBOS بمعدل تعلم ثابت.

ملخص

prox_v = var - alpha * delta var = sign (prox_v) / (1 + alpha * l2) * max {| prox_v | -alpha * l1،0}

الحجج:

  • النطاق: كائن النطاق
  • var: يجب أن يكون من متغير ().
  • ألفا: عامل التحجيم. يجب أن يكون عددًا.
  • l1: تسوية L1. يجب أن يكون عددًا.
  • l2: تسوية L2. يجب أن يكون عددًا.
  • دلتا: التغيير.

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

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

عائدات:

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

ResourceApplyProximalGradientDescent (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input alpha, :: tensorflow::Input l1, :: tensorflow::Input l2, :: tensorflow::Input delta)
ResourceApplyProximalGradientDescent (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input alpha, :: tensorflow::Input l1, :: tensorflow::Input l2, :: tensorflow::Input delta, const ResourceApplyProximalGradientDescent::Attrs & attrs)

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

operation

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

operator::tensorflow::Operation () const

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

UseLocking (bool x)

الهياكل

tensorflow :: ops :: ResourceApplyProximalGradientDescent :: Attrs

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

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

عملية

Operation operation

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

ResourceApplyProximalGradientDescent

 ResourceApplyProximalGradientDescent(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input var,
  ::tensorflow::Input alpha,
  ::tensorflow::Input l1,
  ::tensorflow::Input l2,
  ::tensorflow::Input delta
)

ResourceApplyProximalGradientDescent

 ResourceApplyProximalGradientDescent(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input var,
  ::tensorflow::Input alpha,
  ::tensorflow::Input l1,
  ::tensorflow::Input l2,
  ::tensorflow::Input delta,
  const ResourceApplyProximalGradientDescent::Attrs & attrs
)

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

 operator::tensorflow::Operation() const 

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

UseLocking

Attrs UseLocking(
  bool x
)