tensorflow:: ops:: 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

הפלט_הפניה

::tensorflow::Output 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
)

צוֹמֶת

::tensorflow::Node * node() const 

אופרטור::tensorflow::קלט

 operator::tensorflow::Input() const 

אופרטור::tensorflow::פלט

 operator::tensorflow::Output() const 

פונקציות סטטיות ציבוריות

שימוש בנעילה

Attrs UseLocking(
  bool x
)