tensor akışı:: işlem:: ArgMax

#include <math_ops.h>

Bir tensörün boyutları genelinde en büyük değere sahip dizini döndürür.

Özet

Eşitlik durumunda dönüş değerinin kimliğinin 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ş Tensörünün hangi boyutunun azaltılacağını açıklar. Vektörler için boyut = 0'ı kullanın.

İadeler:

  • Output : Çıkış 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

Kamu işlevleri

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

Genel statik işlevler

OutputType (DataType x)

Yapılar

tensorflow:: ops:: ArgMax:: Öznitelikler

ArgMax için isteğe bağlı nitelik ayarlayıcılar.

Genel özellikler

operasyon

Operation operation

çıktı

::tensorflow::Output output

Kamu işlevleri

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 

Genel statik işlevler

Çıkış Türü

Attrs OutputType(
  DataType x
)