tensorflow:: אופס:: ארגמקס
#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
טיעונים:
- scope: אובייקט Scope
- ממד: int32 או int64, חייב להיות בטווח
[-rank(input), rank(input))
. מתאר איזה מימד של Tensor הקלט להפחית לרוחבו. עבור וקטורים, השתמש בממד = 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) |
תפקידים ציבוריים | |
---|---|
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
פונקציות סטטיות ציבוריות
OutputType
Attrs OutputType( DataType x )