tensorflow:: ops:: SparseReduceMax
#include <sparse_ops.h>מחשב את המקסימום של אלמנטים על פני ממדים של SparseTensor.
תַקצִיר
אופציה זו מקבלת טנזור Sparse והיא המקבילה הדלילה ל- tf.reduce_max() . בפרט, אופציה זו גם מחזירה Tensor צפוף במקום טנזור דליל.
מקטין sp_input לאורך הממדים הנתונים ב- reduction_axes . אלא אם כן keep_dims נכונה, דרגת הטנזור מצטמצמת ב-1 עבור כל ערך ב- reduction_axes . אם keep_dims נכונה, הממדים המצומצמים נשמרים באורך 1.
אם reduction_axes אין ערכים, כל המימדים מצטמצמים, ומוחזר טנזור עם אלמנט יחיד. בנוסף, הצירים יכולים להיות שליליים, שמתפרשים בהתאם לכללי האינדוקס בפייתון.
טיעונים:
- היקף: אובייקט היקף
- input_indices: מטריצה דו-ממדית של
N x Rעם אינדקסים של ערכים שאינם ריקים ב-SparseTensor, ייתכן שלא בסדר קנוני. - input_values: 1-D.
Nערכים שאינם ריקים התואמים ל-input_indices. - input_shape: צורה חד-ממדית של SparseTensor הקלט.
- צירי_הפחתה: וקטור חד-ממדי. אורך -
Kהמכיל את צירי ההפחתה.
מאפיינים אופציונליים (ראה Attrs ):
- keep_dims: אם נכון, יש לשמור על מידות מצומצמות באורך 1.
החזרות:
בנאים והורסים | |
|---|---|
SparseReduceMax (const :: tensorflow::Scope & scope, :: tensorflow::Input input_indices, :: tensorflow::Input input_values, :: tensorflow::Input input_shape, :: tensorflow::Input reduction_axes) | |
SparseReduceMax (const :: tensorflow::Scope & scope, :: tensorflow::Input input_indices, :: tensorflow::Input input_values, :: tensorflow::Input input_shape, :: tensorflow::Input reduction_axes, const SparseReduceMax::Attrs & attrs) |
מאפיינים ציבוריים | |
|---|---|
operation | |
output | |
תפקידים ציבוריים | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
פונקציות סטטיות ציבוריות | |
|---|---|
KeepDims (bool x) | |
מבנים | |
|---|---|
| tensorflow:: ops:: SparseReduceMax:: Attrs | קובעי מאפיינים אופציונליים עבור SparseReduceMax . |
מאפיינים ציבוריים
מִבצָע
Operation operation
תְפוּקָה
::tensorflow::Output output
תפקידים ציבוריים
SparseReduceMax
SparseReduceMax( const ::tensorflow::Scope & scope, ::tensorflow::Input input_indices, ::tensorflow::Input input_values, ::tensorflow::Input input_shape, ::tensorflow::Input reduction_axes )
SparseReduceMax
SparseReduceMax( const ::tensorflow::Scope & scope, ::tensorflow::Input input_indices, ::tensorflow::Input input_values, ::tensorflow::Input input_shape, ::tensorflow::Input reduction_axes, const SparseReduceMax::Attrs & attrs )
צוֹמֶת
::tensorflow::Node * node() const
אופרטור::tensorflow::קלט
operator::tensorflow::Input() const
אופרטור::tensorflow::פלט
operator::tensorflow::Output() const
פונקציות סטטיות ציבוריות
שמור דימס
Attrs KeepDims( bool x )
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2026-11-05 (שעון UTC).