tensoreflusso:: ops:: ArgMax
#include <math_ops.h>Restituisce l'indice con il valore maggiore tra le dimensioni di un tensore.
Riepilogo
Si noti che in caso di parità 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, utilizzare dimensione = 0.
Resi:
-
Output: il tensore di uscita.
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 pubbliche statiche | |
|---|---|
OutputType (DataType x) | |
Strutture | |
|---|---|
| tensorflow:: ops:: ArgMax:: Attrs | Setter di attributi facoltativi 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
operatore::tensorflow::Input
operator::tensorflow::Input() const
operatore::tensorflow::Output
operator::tensorflow::Output() const
Funzioni pubbliche statiche
Tipo di output
Attrs OutputType( DataType x )