tensorflow:: ops:: ScatterMul

#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 ):

  • use_locking: אם True, הפעולה תהיה מוגנת על ידי נעילה; אחרת ההתנהגות אינה מוגדרת, אך עשויה להפגין פחות תחרות.

החזרות:

  • Output : = זהה ל- ref . מוחזר לנוחיות פעולות שרוצות להשתמש בערכים המעודכנים לאחר סיום העדכון.

בנאים והורסים

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

מאפיינים ציבוריים

operation
output_ref

תפקידים ציבוריים

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

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

UseLocking (bool x)

מבנים

tensorflow:: ops:: ScatterMul:: Attrs

קובעי מאפיינים אופציונליים עבור ScatterMul .

מאפיינים ציבוריים

מִבצָע

Operation operation

הפלט_הפניה

::tensorflow::Output output_ref

תפקידים ציבוריים

ScatterMul

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

ScatterMul

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

צוֹמֶת

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const 

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

שימוש בנעילה

Attrs UseLocking(
  bool x
)