تدفق التوتر:: العمليات:: ScatterMin

#include <state_ops.h>

يقلل التحديثات المتفرقة إلى مرجع متغير باستخدام العملية min .

ملخص

تحسب هذه العملية

# Scalar indices
ref[indices, ...] = min(ref[indices, ...], updates[...])

# Vector indices (for each i)
ref[indices[i], ...] = min(ref[indices[i], ...], updates[i, ...])

# High rank indices (for each i, ..., j)
ref[indices[i, ..., j], ...] = min(ref[indices[i, ..., j], ...], updates[i, ..., j, ...])

تقوم هذه العملية بإخراج ref بعد الانتهاء من التحديث. وهذا يجعل من السهل ربط العمليات التي تحتاج إلى استخدام قيمة إعادة التعيين.

يتم التعامل مع الإدخالات المكررة بشكل صحيح: إذا كانت هناك indices متعددة تشير إلى نفس الموقع، فسيتم دمج مساهماتها.

يتطلب updates.shape = indices.shape + ref.shape[1:] أو updates.shape = [] .

الحجج:

  • النطاق: كائن النطاق
  • المرجع: يجب أن يكون من عقدة Variable .
  • المؤشرات: موتر من المؤشرات في البعد الأول من ref .
  • التحديثات: موتر القيم المحدثة لتقليلها إلى ref .

السمات الاختيارية (انظر Attrs ):

  • use_locking: إذا كان True، فسيتم حماية التحديث بواسطة قفل؛ وإلا فإن السلوك غير محدد، ولكنه قد يحمل قدرًا أقل من الخلاف.

عائدات:

  • Output : = نفس ref . يتم إرجاعها لتسهيل العمليات التي تريد استخدام القيم المحدثة بعد الانتهاء من التحديث.

البنائين والمدمرين

ScatterMin (const :: tensorflow::Scope & scope, :: tensorflow::Input ref, :: tensorflow::Input indices, :: tensorflow::Input updates)
ScatterMin (const :: tensorflow::Scope & scope, :: tensorflow::Input ref, :: tensorflow::Input indices, :: tensorflow::Input updates, const ScatterMin::Attrs & attrs)

الصفات العامة

operation
output_ref

الوظائف العامة

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

وظائف ثابتة العامة

UseLocking (bool x)

الهياكل

Tensorflow:: ops:: ScatterMin:: Attrs

محددات السمات الاختيارية لـ ScatterMin .

الصفات العامة

عملية

Operation operation

input_ref

::tensorflow::Output output_ref

الوظائف العامة

ScatterMin

 ScatterMin(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input ref,
  ::tensorflow::Input indices,
  ::tensorflow::Input updates
)

ScatterMin

 ScatterMin(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input ref,
  ::tensorflow::Input indices,
  ::tensorflow::Input updates,
  const ScatterMin::Attrs & attrs
)

العقدة

::tensorflow::Node * node() const 

المشغل::tensorflow::الإدخال

 operator::tensorflow::Input() const 

المشغل::tensorflow::الإخراج

 operator::tensorflow::Output() const 

وظائف ثابتة العامة

UseLocking

Attrs UseLocking(
  bool x
)