تدفق التوتر:: العمليات:: ResourceSparseApplyAdagradDA
#include <training_ops.h>
قم بتحديث الإدخالات في '*var' و'*accum' وفقًا لمخطط adagrad القريب.
ملخص
الحجج:
- النطاق: كائن النطاق
- فار: يجب أن يكون من متغير ().
- gradient_accumulator: يجب أن يكون من متغير ().
- gradient_squared_accumulator: يجب أن يكون من متغير ().
- غراد: التدرج.
- المؤشرات: متجه للمؤشرات في البعد الأول من var وaccum.
- ل: معدل التعلم. يجب أن يكون العددية.
- l1: تسوية L1. يجب أن يكون العددية.
- l2: تسوية L2. يجب أن يكون العددية.
- global_step: رقم خطوة التدريب. يجب أن يكون العددية.
السمات الاختيارية (انظر Attrs
):
- use_locking: إذا كان True، فسيتم حماية تحديث موتر var وaccum بواسطة قفل؛ وإلا فإن السلوك غير محدد، ولكنه قد يحمل قدرًا أقل من الخلاف.
العوائد:
-
Operation
التي تم إنشاؤها
البنائين والمدمرين | |
---|---|
ResourceSparseApplyAdagradDA (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input gradient_accumulator, :: tensorflow::Input gradient_squared_accumulator, :: tensorflow::Input grad, :: tensorflow::Input indices, :: tensorflow::Input lr, :: tensorflow::Input l1, :: tensorflow::Input l2, :: tensorflow::Input global_step) | |
ResourceSparseApplyAdagradDA (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input gradient_accumulator, :: tensorflow::Input gradient_squared_accumulator, :: tensorflow::Input grad, :: tensorflow::Input indices, :: tensorflow::Input lr, :: tensorflow::Input l1, :: tensorflow::Input l2, :: tensorflow::Input global_step, const ResourceSparseApplyAdagradDA::Attrs & attrs) |
الوظائف العامة | |
---|---|
operator::tensorflow::Operation () const |
وظائف ثابتة العامة | |
---|---|
UseLocking (bool x) |
الهياكل | |
---|---|
Tensorflow:: ops:: ResourceSparseApplyAdagradDA:: Attrs | محددات السمات الاختيارية لـ ResourceSparseApplyAdagradDA . |
الصفات العامة
عملية
Operation operation
الوظائف العامة
ResourceSparseApplyAdagradDA
ResourceSparseApplyAdagradDA( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input gradient_accumulator, ::tensorflow::Input gradient_squared_accumulator, ::tensorflow::Input grad, ::tensorflow::Input indices, ::tensorflow::Input lr, ::tensorflow::Input l1, ::tensorflow::Input l2, ::tensorflow::Input global_step )
ResourceSparseApplyAdagradDA
ResourceSparseApplyAdagradDA( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input gradient_accumulator, ::tensorflow::Input gradient_squared_accumulator, ::tensorflow::Input grad, ::tensorflow::Input indices, ::tensorflow::Input lr, ::tensorflow::Input l1, ::tensorflow::Input l2, ::tensorflow::Input global_step, const ResourceSparseApplyAdagradDA::Attrs & attrs )
المشغل::tensorflow::Operation
operator::tensorflow::Operation() const
وظائف ثابتة العامة
UseLocking
Attrs UseLocking( bool x )