tensoreflusso:: ops:: ArgMin
#include <math_ops.h>Restituisce l'indice con il valore più piccolo 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.argmin(input = a) c = tf.keras.backend.eval(b) # c = 0 # here a[0] = 1 which is the smallest 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 | |
|---|---|
ArgMin (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input dimension) | |
ArgMin (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input dimension, const ArgMin::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:: ArgMin:: Attrs | Setter di attributi facoltativi per ArgMin . |
Attributi pubblici
operazione
Operation operation
produzione
::tensorflow::Output output
Funzioni pubbliche
ArgMin
ArgMin( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input dimension )
ArgMin
ArgMin( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input dimension, const ArgMin::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 )