tensorflow:: ops:: ScatterDiv
#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. מוחזר לנוחיות פעולות שרוצות להשתמש בערכים המעודכנים לאחר סיום העדכון.
בנאים והורסים | |
|---|---|
ScatterDiv (const :: tensorflow::Scope & scope, :: tensorflow::Input ref, :: tensorflow::Input indices, :: tensorflow::Input updates) | |
ScatterDiv (const :: tensorflow::Scope & scope, :: tensorflow::Input ref, :: tensorflow::Input indices, :: tensorflow::Input updates, const ScatterDiv::Attrs & attrs) |
מאפיינים ציבוריים | |
|---|---|
operation | |
output_ref | |
תפקידים ציבוריים | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
פונקציות סטטיות ציבוריות | |
|---|---|
UseLocking (bool x) | |
מבנים | |
|---|---|
| tensorflow:: ops:: ScatterDiv:: Attrs | קובעי מאפיינים אופציונליים עבור ScatterDiv . |
מאפיינים ציבוריים
מִבצָע
Operation operation
הפלט_הפניה
::tensorflow::Output output_ref
תפקידים ציבוריים
ScatterDiv
ScatterDiv( const ::tensorflow::Scope & scope, ::tensorflow::Input ref, ::tensorflow::Input indices, ::tensorflow::Input updates )
ScatterDiv
ScatterDiv( const ::tensorflow::Scope & scope, ::tensorflow::Input ref, ::tensorflow::Input indices, ::tensorflow::Input updates, const ScatterDiv::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)."],[],[]]