tensorflow::ops::ArgMin
#include <math_ops.h>Mengembalikan indeks dengan nilai terkecil di seluruh dimensi tensor.
Ringkasan
Perlu dicatat bahwa jika terjadi seri, identitas nilai yang dikembalikan tidak dijamin.
Penggunaan:
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
Argumen:
- Cakupan: Objek Cakupan
- dimension: int32 or int64, must be in the range
[-rank(input), rank(input)). Menjelaskan dimensi Tensor input mana yang akan direduksi. Untuk vektor, gunakan dimension = 0.
Mengembalikan:
-
Output: Tensor output.
Konstruktor dan Destruktor | |
|---|---|
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) |
Atribut publik | |
|---|---|
operation | |
output | |
Fungsi publik | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
Fungsi statis publik | |
|---|---|
OutputType (DataType x) | |
Struktur | |
|---|---|
| tensorflow::ops::ArgMin::Attrs | Pengaturan atribut opsional untuk ArgMin . |
Atribut publik
operasi
Operation operation
keluaran
::tensorflow::Output output
Fungsi publik
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 )
simpul
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Fungsi statis publik
Tipe Keluaran
Attrs OutputType( DataType x )