tensorflow:: عملیات:: آرگ‌مکس

#include <math_ops.h>

اندیسی را که بزرگترین مقدار را در بین ابعاد یک تانسور دارد، برمی‌گرداند.

خلاصه

توجه داشته باشید که در صورت وجود تساوی، هویت مقدار برگشتی تضمین نمی‌شود.

کاربرد:

  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
  

استدلال‌ها:

  • دامنه: یک شیء دامنه
  • بُعد: int32 یا int64، باید در محدوده [-rank(input), rank(input)) باشد. بُعد تنسور ورودی را برای کاهش در طول آن توصیف می‌کند. برای بردارها، از بُعد = 0 استفاده کنید.

بازده:

  • Output : تانسور خروجی.

سازنده‌ها و مخرب‌ها

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)

ویژگی‌های عمومی

operation
output

کارکردهای عمومی

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

توابع استاتیک عمومی

OutputType (DataType x)

ساختارها

tensorflow:: عملیات:: ArgMax:: جذابیت‌ها

تنظیم‌کننده‌های ویژگی اختیاری برای ArgMax .

ویژگی‌های عمومی

عملیات

Operation operation

خروجی

::tensorflow::Output output

کارکردهای عمومی

آرگ مکس

 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
)

گره

::tensorflow::Node * node() const 

عملگر::tensorflow::ورودی

 operator::tensorflow::Input() const 

عملگر::tensorflow::خروجی

 operator::tensorflow::Output() const 

توابع استاتیک عمومی

نوع خروجی

Attrs OutputType(
  DataType x
)