tensorflow :: ops :: ArgMin
#include <math_ops.h>
Mengembalikan indeks dengan nilai terkecil di seluruh dimensi tensor.
Ringkasan
Perhatikan bahwa dalam kasus ikatan identitas nilai kembali 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:
- scope: Objek Scope
- dimensi: int32 atau int64, harus dalam rentang
[-rank(input), rank(input))
. Menjelaskan dimensi mana dari Tensor input yang akan dikurangi. Untuk vektor, gunakan dimensi = 0.
Pengembalian:
-
Output
: Tensor keluaran.
Pembuat dan Penghancur | |
---|---|
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) |
Structs | |
---|---|
tensorflow :: ops :: ArgMin :: Attrs |
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 :: Keluaran
operator::tensorflow::Output() const
Fungsi statis publik
OutputType
Attrs OutputType( DataType x )