tensorflow:: ops:: 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 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

الدوال الثابتة العامة

نوع الإخراج

Attrs OutputType(
  DataType x
)