tensorflow:: ops:: ScatterMul
#include <state_ops.h>يقوم بضرب التحديثات المتفرقة في مرجع متغير.
ملخص
تحسب هذه العملية
# Scalar indices
ref[indices, ...] *= updates[...]# Vector indices (for each i) ref[indices[i], ...] *= updates[i, ...]
# High rank indices (for each i, ..., j)
ref[indices[i, ..., j], ...] *= updates[i, ..., j, ...] تُخرج هذه العملية ref بعد اكتمال التحديث. وهذا يُسهّل ربط العمليات التي تحتاج إلى استخدام قيمة إعادة التعيين.
يتم التعامل مع الإدخالات المكررة بشكل صحيح: إذا أشارت عدة indices إلى نفس الموقع، فإن مساهماتها تتضاعف.
يتطلب ذلك أن updates.shape = indices.shape + ref.shape[1:] أو updates.shape = [] .
الحجج:
- النطاق: كائن النطاق
- المرجع: يجب أن يكون من عقدة
Variable. - المؤشرات: موتر من المؤشرات في البعد الأول من
ref. - التحديثات: موتر من القيم المحدثة لضربها في
ref.
السمات الاختيارية (انظر Attrs ):
- استخدام القفل: إذا كانت القيمة True، فسيتم حماية العملية بواسطة قفل؛ وإلا فإن السلوك غير محدد، ولكنه قد يُظهر قدرًا أقل من التنازع.
المرتجعات:
-
Output: = نفسref. يتم إرجاعه لتسهيل العمليات التي ترغب في استخدام القيم المحدثة بعد اكتمال التحديث.
البناة والمدمرون | |
|---|---|
ScatterMul (const :: tensorflow::Scope & scope, :: tensorflow::Input ref, :: tensorflow::Input indices, :: tensorflow::Input updates) | |
ScatterMul (const :: tensorflow::Scope & scope, :: tensorflow::Input ref, :: tensorflow::Input indices, :: tensorflow::Input updates, const ScatterMul::Attrs & attrs) |
السمات العامة | |
|---|---|
operation | |
output_ref | |
الوظائف العامة | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
الدوال الثابتة العامة | |
|---|---|
UseLocking (bool x) | |
الهياكل | |
|---|---|
| tensorflow:: ops:: ScatterMul:: Attrs | أدوات تعيين السمات الاختيارية لـ ScatterMul . |
السمات العامة
عملية
Operation operation
output_ref
::tensorflow::Output output_ref
الوظائف العامة
ScatterMul
ScatterMul( const ::tensorflow::Scope & scope, ::tensorflow::Input ref, ::tensorflow::Input indices, ::tensorflow::Input updates )
ScatterMul
ScatterMul( const ::tensorflow::Scope & scope, ::tensorflow::Input ref, ::tensorflow::Input indices, ::tensorflow::Input updates, const ScatterMul::Attrs & attrs )
العقدة
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
الدوال الثابتة العامة
قفل الاستخدام
Attrs UseLocking( bool x )
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2026-11-05 (حسب التوقيت العالمي المتفَّق عليه)