tensorflow:: عملیات:: ResourceSparseApplyProximalGradientDescent

#include <training_ops.h>

به‌روزرسانی پراکنده '*var' به عنوان الگوریتم FOBOS با نرخ یادگیری ثابت.

خلاصه

یعنی برای ردیف‌هایی که grad داریم، var را به صورت زیر به‌روزرسانی می‌کنیم: prox_v = var - alpha * grad var = sign(prox_v)/(1+alpha*l2) * max{|prox_v|-alpha*l1,0}

استدلال‌ها:

  • دامنه: یک شیء دامنه
  • var: باید از یک متغیر () باشد.
  • آلفا: ضریب مقیاس‌بندی. باید یک اسکالر باشد.
  • l1: منظم‌سازی L1. باید اسکالر باشد.
  • l2: منظم‌سازی L2. باید اسکالر باشد.
  • گرادیان: شیب.
  • شاخص‌ها: برداری از شاخص‌ها در بعد اول var و accum.

ویژگی‌های اختیاری (به Attrs مراجعه کنید):

  • use_locking: اگر True باشد، تفریق توسط یک قفل محافظت می‌شود؛ در غیر این صورت رفتار تعریف نشده است، اما ممکن است رقابت کمتری را نشان دهد.

بازده:

سازنده‌ها و مخرب‌ها

ResourceSparseApplyProximalGradientDescent (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input alpha, :: tensorflow::Input l1, :: tensorflow::Input l2, :: tensorflow::Input grad, :: tensorflow::Input indices)
ResourceSparseApplyProximalGradientDescent (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input alpha, :: tensorflow::Input l1, :: tensorflow::Input l2, :: tensorflow::Input grad, :: tensorflow::Input indices, const ResourceSparseApplyProximalGradientDescent::Attrs & attrs)

ویژگی‌های عمومی

operation

کارکردهای عمومی

operator::tensorflow::Operation () const

توابع استاتیک عمومی

UseLocking (bool x)

ساختارها

tensorflow:: ops:: ResourceSparseApplyProximalGradientDescent:: Attrs

تنظیم‌کننده‌های ویژگی اختیاری برای ResourceSparseApplyProximalGradientDescent .

ویژگی‌های عمومی

عملیات

Operation operation

کارکردهای عمومی

ResourceSparseApplyProximalGradientDescent

 ResourceSparseApplyProximalGradientDescent(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input var,
  ::tensorflow::Input alpha,
  ::tensorflow::Input l1,
  ::tensorflow::Input l2,
  ::tensorflow::Input grad,
  ::tensorflow::Input indices
)

ResourceSparseApplyProximalGradientDescent

 ResourceSparseApplyProximalGradientDescent(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input var,
  ::tensorflow::Input alpha,
  ::tensorflow::Input l1,
  ::tensorflow::Input l2,
  ::tensorflow::Input grad,
  ::tensorflow::Input indices,
  const ResourceSparseApplyProximalGradientDescent::Attrs & attrs
)

عملگر::tensorflow::عملیات

 operator::tensorflow::Operation() const 

توابع استاتیک عمومی

استفاده از قفل

Attrs UseLocking(
  bool x
)