تينسورفلو :: العمليات :: متفرقة
#include <training_ops.h>
قم بتحديث الإدخالات ذات الصلة في "* var" و "* build" وفقًا لمخطط adagrad.
ملخص
هذا بالنسبة للصفوف التي لدينا غراد لها ، نقوم بتحديث var وتجميعها على النحو التالي: $$accum += grad * grad$$ $$var -= lr * grad * (1 / sqrt(accum))$$
الحجج:
- النطاق: كائن النطاق
- var: يجب أن يكون من متغير ().
- تراكم: يجب أن يكون من المتغير ().
- lr: معدل التعلم. يجب أن يكون عددًا.
- غراد: التدرج.
- المؤشرات: متجه من المؤشرات في البعد الأول من var و stack.
السمات الاختيارية (انظر Attrs
):
- use_locking: إذا كان هذا
True
، فسيتم حماية تحديث التنسورات var والتراكم بقفل ؛ وبخلاف ذلك ، يكون السلوك غير محدد ، ولكنه قد يعرض خلافًا أقل.
عائدات:
-
Output
: نفس "فار".
البنائين والمدمرين | |
---|---|
SparseApplyAdagrad (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input accum, :: tensorflow::Input lr, :: tensorflow::Input grad, :: tensorflow::Input indices) | |
SparseApplyAdagrad (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input accum, :: tensorflow::Input lr, :: tensorflow::Input grad, :: tensorflow::Input indices, const SparseApplyAdagrad::Attrs & attrs) |
السمات العامة | |
---|---|
operation | |
out |
الوظائف العامة | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
وظائف ثابتة عامة | |
---|---|
UpdateSlots (bool x) | |
UseLocking (bool x) |
الهياكل | |
---|---|
tensorflow :: ops :: SparseApplyAdagrad :: Attrs | محددات السمات الاختيارية لـ SparseApplyAdagrad . |
السمات العامة
عملية
Operation operation
خارج
::tensorflow::Output out
الوظائف العامة
متفرقة
SparseApplyAdagrad( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input accum, ::tensorflow::Input lr, ::tensorflow::Input grad, ::tensorflow::Input indices )
متفرقة
SparseApplyAdagrad( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input accum, ::tensorflow::Input lr, ::tensorflow::Input grad, ::tensorflow::Input indices, const SparseApplyAdagrad::Attrs & attrs )
العقدة
::tensorflow::Node * node() const
المشغل :: tensorflow :: الإدخال
operator::tensorflow::Input() const
المشغل :: Tensorflow :: Output
operator::tensorflow::Output() const
وظائف ثابتة عامة
UpdateSlots
Attrs UpdateSlots( bool x )
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"
}]