تينسورفلو :: العمليات :: ResourceSparseApplyAdagrad
#include <training_ops.h>
قم بتحديث الإدخالات ذات الصلة في "* var" و "* build" وفقًا لنظام adagrad.
ملخص
هذا بالنسبة للصفوف التي لدينا grad لها ، نقوم بتحديث var وتجميعها على النحو التالي: تراكم + = غراد * غراد فار - = lr * غراد * (1 / sqrt (تراكم))
الحجج:
- النطاق: كائن النطاق
- var: يجب أن يكون من متغير ().
- تراكم: يجب أن يكون من المتغير ().
- lr: معدل التعلم. يجب أن يكون عددًا.
- غراد: التدرج.
- المؤشرات: متجه من المؤشرات في البعد الأول من var و stack.
السمات الاختيارية (انظر Attrs
):
- use_locking: إذا كان هذا
True
، فسيتم حماية تحديث التنسورات var والتراكم بواسطة قفل ؛ وبخلاف ذلك ، يكون السلوك غير محدد ، ولكنه قد يعرض خلافًا أقل.
عائدات:
-
Operation
تم إنشاؤها
البنائين والمدمرين | |
---|---|
ResourceSparseApplyAdagrad (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input accum, :: tensorflow::Input lr, :: tensorflow::Input grad, :: tensorflow::Input indices) | |
ResourceSparseApplyAdagrad (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input accum, :: tensorflow::Input lr, :: tensorflow::Input grad, :: tensorflow::Input indices, const ResourceSparseApplyAdagrad::Attrs & attrs) |
السمات العامة | |
---|---|
operation |
الوظائف العامة | |
---|---|
operator::tensorflow::Operation () const |
وظائف ثابتة عامة | |
---|---|
UpdateSlots (bool x) | |
UseLocking (bool x) |
الهياكل | |
---|---|
tensorflow :: ops :: ResourceSparseApplyAdagrad :: Attrs | محددات السمات الاختيارية لـ ResourceSparseApplyAdagrad . |
السمات العامة
عملية
Operation operation
الوظائف العامة
ResourceSparseApplyAdagrad
ResourceSparseApplyAdagrad( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input accum, ::tensorflow::Input lr, ::tensorflow::Input grad, ::tensorflow::Input indices )
ResourceSparseApplyAdagrad
ResourceSparseApplyAdagrad( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input accum, ::tensorflow::Input lr, ::tensorflow::Input grad, ::tensorflow::Input indices, const ResourceSparseApplyAdagrad::Attrs & attrs )
المشغل :: Tensorflow :: العملية
operator::tensorflow::Operation() const
وظائف ثابتة عامة
UpdateSlots
Attrs UpdateSlots( bool x )
UseLocking
Attrs UseLocking( bool x )
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2020-04-20 (حسب التوقيت العالمي المتفَّق عليه)
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"لا يحتوي على المعلومات التي أحتاج إليها."
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"الخطوات معقدة للغاية / كثيرة جدًا."
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"المحتوى قديم."
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"ثمة مشكلة في الترجمة."
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"مشكلة في العيّنات / التعليمات البرمجية"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"غير ذلك"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"يسهُل فهم المحتوى."
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"ساعَدني المحتوى في حلّ مشكلتي."
},{
"type": "thumb-up",
"id": "otherUp",
"label":"غير ذلك"
}]