tensorflow:: ops:: ArgMax
#include <math_ops.h>מחזירה את האינדקס עם הערך הגדול ביותר על פני ממדים של טנזור.
תַקצִיר
שים לב שבמקרה של קשרים, זהות ערך ההחזרה אינה מובטחת.
נוֹהָג:
import tensorflow as tf a = [1, 10, 26.9, 2.8, 166.32, 62.3] b = tf.math.argmax(input = a) c = tf.keras.backend.eval(b) # c = 4 # here a[4] = 166.32 which is the largest element of a across axis 0
טיעונים:
- היקף: אובייקט היקף
- ממד: int32 או int64, חייב להיות בטווח
[-rank(input), rank(input)). מתאר על איזה ממד של טנזור הקלט יש לצמצם. עבור וקטורים, השתמש ב- dimension = 0.
החזרות:
-
Output: טנזור הפלט.
בנאים והורסים | |
|---|---|
ArgMax (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input dimension) | |
ArgMax (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input dimension, const ArgMax::Attrs & attrs) |
מאפיינים ציבוריים | |
|---|---|
operation | |
output | |
תפקידים ציבוריים | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
פונקציות סטטיות ציבוריות | |
|---|---|
OutputType (DataType x) | |
מבנים | |
|---|---|
| tensorflow:: ops:: ArgMax:: Attrs | קובעי מאפיינים אופציונליים עבור ArgMax . |
מאפיינים ציבוריים
מִבצָע
Operation operation
תְפוּקָה
::tensorflow::Output output
תפקידים ציבוריים
ארגמקס
ArgMax( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input dimension )
ארגמקס
ArgMax( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input dimension, const ArgMax::Attrs & attrs )
צוֹמֶת
::tensorflow::Node * node() const
אופרטור::tensorflow::קלט
operator::tensorflow::Input() const
אופרטור::tensorflow::פלט
operator::tensorflow::Output() const
פונקציות סטטיות ציבוריות
סוג פלט
Attrs OutputType( DataType x )
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2026-11-05 (שעון UTC).
[null,null,["עדכון אחרון: 2026-11-05 (שעון UTC)."],[],[]]