tensorflow :: ops :: ArgMax
#include <math_ops.h>
Restituisce l'indice con il valore più grande tra le dimensioni di un tensore.
Sommario
Si noti che in caso di vincoli l'identità del valore restituito non è garantita.
Utilizzo:
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
Argomenti:
- scope: un oggetto Scope
- dimensione: int32 o int64, deve essere nell'intervallo
[-rank(input), rank(input))
. Descrive quale dimensione del tensore di input ridurre. Per i vettori, usa dimensione = 0.
Ritorna:
-
Output
: il tensore di output.
Costruttori e distruttori | |
---|---|
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) |
Attributi pubblici | |
---|---|
operation | |
output |
Funzioni pubbliche | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Funzioni statiche pubbliche | |
---|---|
OutputType (DataType x) |
Structs | |
---|---|
tensorflow :: ops :: ArgMax :: Attrs | Setter di attributi opzionali per ArgMax . |
Attributi pubblici
operazione
Operation operation
produzione
::tensorflow::Output output
Funzioni pubbliche
ArgMax
ArgMax( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input dimension )
ArgMax
ArgMax( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input dimension, const ArgMax::Attrs & attrs )
nodo
::tensorflow::Node * node() const
operator :: tensorflow :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Output
operator::tensorflow::Output() const
Funzioni statiche pubbliche
OutputType
Attrs OutputType( DataType x )