tensorflow:: ops:: ScatterMax
#include <state_ops.h> يُحوّل التحديثات المتفرقة إلى مرجع متغير باستخدام عملية max .
ملخص
تحسب هذه العملية
# Scalar indices ref[indices, ...] = max(ref[indices, ...], updates[...]) # Vector indices (for each i) ref[indices[i], ...] = max(ref[indices[i], ...], updates[i, ...]) # High rank indices (for each i, ..., j) ref[indices[i, ..., j], ...] = max(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. يتم إرجاعه لتسهيل العمليات التي ترغب في استخدام القيم المحدثة بعد اكتمال التحديث.
البناة والمدمرون | |
|---|---|
ScatterMax (const :: tensorflow::Scope & scope, :: tensorflow::Input ref, :: tensorflow::Input indices, :: tensorflow::Input updates) | |
ScatterMax (const :: tensorflow::Scope & scope, :: tensorflow::Input ref, :: tensorflow::Input indices, :: tensorflow::Input updates, const ScatterMax::Attrs & attrs) |
السمات العامة | |
|---|---|
operation | |
output_ref | |
الوظائف العامة | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
الدوال الثابتة العامة | |
|---|---|
UseLocking (bool x) | |
الهياكل | |
|---|---|
| tensorflow:: ops:: ScatterMax:: Attrs | أدوات تعيين السمات الاختيارية لـ ScatterMax . |
السمات العامة
عملية
Operation operation
output_ref
::tensorflow::Output output_ref
الوظائف العامة
سكاتيرماكس
ScatterMax( const ::tensorflow::Scope & scope, ::tensorflow::Input ref, ::tensorflow::Input indices, ::tensorflow::Input updates )
سكاتيرماكس
ScatterMax( const ::tensorflow::Scope & scope, ::tensorflow::Input ref, ::tensorflow::Input indices, ::tensorflow::Input updates, const ScatterMax::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 (حسب التوقيت العالمي المتفَّق عليه)