tensorflow:: ops:: ScatterDiv
#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. يتم إرجاعه لتسهيل العمليات التي ترغب في استخدام القيم المحدثة بعد اكتمال التحديث.
البناة والمدمرون | |
|---|---|
ScatterDiv (const :: tensorflow::Scope & scope, :: tensorflow::Input ref, :: tensorflow::Input indices, :: tensorflow::Input updates) | |
ScatterDiv (const :: tensorflow::Scope & scope, :: tensorflow::Input ref, :: tensorflow::Input indices, :: tensorflow::Input updates, const ScatterDiv::Attrs & attrs) |
السمات العامة | |
|---|---|
operation | |
output_ref | |
الوظائف العامة | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
الدوال الثابتة العامة | |
|---|---|
UseLocking (bool x) | |
الهياكل | |
|---|---|
| tensorflow:: ops:: ScatterDiv:: Attrs | أدوات تعيين السمات الاختيارية لـ ScatterDiv . |
السمات العامة
عملية
Operation operation
output_ref
::tensorflow::Output output_ref
الوظائف العامة
ScatterDiv
ScatterDiv( const ::tensorflow::Scope & scope, ::tensorflow::Input ref, ::tensorflow::Input indices, ::tensorflow::Input updates )
ScatterDiv
ScatterDiv( const ::tensorflow::Scope & scope, ::tensorflow::Input ref, ::tensorflow::Input indices, ::tensorflow::Input updates, const ScatterDiv::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 (حسب التوقيت العالمي المتفَّق عليه)