جریان تنسور:: عملیات:: 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 = [] نیاز دارد.

استدلال ها:

  • scope: یک شی Scope
  • ref: باید از یک گره Variable باشد.
  • indices: تانسوری از شاخص ها به بعد اول 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

output_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 

توابع استاتیک عمومی

استفاده از قفل

Attrs UseLocking(
  bool x
)