تدفق التوتر:: العمليات:: ArgMax

#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:: ops:: ArgMax:: Attrs

محددات السمات الاختيارية لـ ArgMax .

الصفات العامة

عملية

Operation operation

انتاج

::tensorflow::Output output

الوظائف العامة

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
)

العقدة

::tensorflow::Node * node() const 

المشغل::tensorflow::الإدخال

 operator::tensorflow::Input() const 

المشغل::tensorflow::الإخراج

 operator::tensorflow::Output() const 

وظائف ثابتة العامة

نوع الإخراج

Attrs OutputType(
  DataType x
)