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 )
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2026-11-05 (שעון UTC).
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2026-11-05 (שעון UTC)."],[],[]]