تينسورفلو :: العمليات :: ResourceSparseApplyProximalAdagrad
#include <training_ops.h>
إدخالات تحديث متفرقة في "* var" و "* تراكم" وفقًا لخوارزمية FOBOS.
ملخص
هذا بالنسبة للصفوف التي لدينا غراد لها ، نقوم بتحديث var ونراكم على النحو التالي: تراكم + = غراد * غراد بروكس_ف = فار بروكس_ف - = ر * غراد * (1 / سرت (تراكم)) فار = علامة (بروكسف) / (1 + lr * l2) * حد أقصى {| prox_v | -lr * l1،0}
الحجج:
- النطاق: كائن النطاق
- var: يجب أن يكون من متغير ().
- تراكم: يجب أن يكون من المتغير ().
- lr: معدل التعلم. يجب أن يكون عددًا.
- l1: تسوية L1. يجب أن يكون عددًا.
- l2: تسوية L2. يجب أن يكون عددًا.
- غراد: التدرج.
- المؤشرات: متجه من المؤشرات في البعد الأول من var و stack.
السمات الاختيارية (انظر Attrs
):
- use_locking: إذا كان هذا صحيحًا ، فسيتم حماية تحديث التنسورات var والتراكم بقفل ؛ وبخلاف ذلك ، يكون السلوك غير محدد ، ولكنه قد يعرض خلافًا أقل.
عائدات:
-
Operation
تم إنشاؤها
البنائين والمدمرين | |
---|---|
ResourceSparseApplyProximalAdagrad (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input accum, :: tensorflow::Input lr, :: tensorflow::Input l1, :: tensorflow::Input l2, :: tensorflow::Input grad, :: tensorflow::Input indices) | |
ResourceSparseApplyProximalAdagrad (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input accum, :: tensorflow::Input lr, :: tensorflow::Input l1, :: tensorflow::Input l2, :: tensorflow::Input grad, :: tensorflow::Input indices, const ResourceSparseApplyProximalAdagrad::Attrs & attrs) |
السمات العامة | |
---|---|
operation |
الوظائف العامة | |
---|---|
operator::tensorflow::Operation () const |
وظائف ثابتة عامة | |
---|---|
UseLocking (bool x) |
الهياكل | |
---|---|
tensorflow :: ops :: ResourceSparseApplyProximalAdagrad :: Attrs | محددات السمات الاختيارية لـ ResourceSparseApplyProximalAdagrad . |
السمات العامة
عملية
Operation operation
الوظائف العامة
ResourceSparseApplyProximalAdagrad
ResourceSparseApplyProximalAdagrad( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input accum, ::tensorflow::Input lr, ::tensorflow::Input l1, ::tensorflow::Input l2, ::tensorflow::Input grad, ::tensorflow::Input indices )
ResourceSparseApplyProximalAdagrad
ResourceSparseApplyProximalAdagrad( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input accum, ::tensorflow::Input lr, ::tensorflow::Input l1, ::tensorflow::Input l2, ::tensorflow::Input grad, ::tensorflow::Input indices, const ResourceSparseApplyProximalAdagrad::Attrs & attrs )
المشغل :: Tensorflow :: العملية
operator::tensorflow::Operation() const
وظائف ثابتة عامة
UseLocking
Attrs UseLocking( bool x )
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-04-20 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Translation issue"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"مشكلة في العيّنات / التعليمات البرمجية"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]