tensorflow::ops::ArgMax
#include <math_ops.h>Bir tensörün boyutları arasında en büyük değere sahip olan indeksi döndürür.
Özet
Eşitlik durumunda geri dönüş değerinin aynı olmasının garanti edilmediğini unutmayın.
Kullanım:
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
Argümanlar:
- kapsam: Bir Kapsam nesnesi
- Boyut: int32 veya int64,
[-rank(input), rank(input))aralığında olmalıdır. Giriş Tensor'unun hangi boyutu üzerinden indirgeme yapılacağını açıklar. Vektörler için boyut = 0 kullanın.
İadeler:
-
Output: Çıktı tensörü.
Yapıcılar ve Yıkıcılar | |
|---|---|
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) |
Genel özellikler | |
|---|---|
operation | |
output | |
Kamusal işlevler | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
Herkese açık statik fonksiyonlar | |
|---|---|
OutputType (DataType x) | |
Yapılar | |
|---|---|
| tensorflow::ops::ArgMax::Attrs | ArgMax için isteğe bağlı öznitelik ayarlayıcıları. |
Genel özellikler
operasyon
Operation operation
çıktı
::tensorflow::Output output
Kamusal işlevler
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 )
düğüm
::tensorflow::Node * node() const
operatör::tensorflow::Giriş
operator::tensorflow::Input() const
operatör::tensorflow::Çıktı
operator::tensorflow::Output() const
Herkese açık statik fonksiyonlar
ÇıkışTipi
Attrs OutputType( DataType x )