تدفق التوتر:: العمليات:: ResourceSparseApplyProximalGradientDescent
#include <training_ops.h>
تحديث متفرق '*var' كخوارزمية FOBOS بمعدل تعلم ثابت.
ملخص
بالنسبة للصفوف التي حصلنا على تدرج لها، نقوم بتحديث var على النحو التالي: prox_v = var - alpha * grad var =sign(prox_v)/(1+alpha*l2) * max{|prox_v|-alpha*l1,0}
الحجج:
- النطاق: كائن النطاق
- فار: يجب أن يكون من متغير ().
- ألفا: عامل التحجيم. يجب أن يكون العددية.
- l1: تسوية L1. يجب أن يكون العددية.
- l2: تسوية L2. يجب أن يكون العددية.
- غراد: التدرج.
- المؤشرات: متجه للمؤشرات في البعد الأول من var وaccum.
السمات الاختيارية (انظر Attrs
):
- use_locking: إذا كان True، فسيتم حماية الطرح بواسطة قفل؛ وإلا فإن السلوك غير محدد، ولكنه قد يحمل قدرًا أقل من الخلاف.
العوائد:
-
Operation
التي تم إنشاؤها
البنائين والمدمرين | |
---|---|
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::Operation
operator::tensorflow::Operation() const
وظائف ثابتة العامة
UseLocking
Attrs UseLocking( bool x )