टेंसरफ़्लो :: ऑप्स :: अर्गमाक्स

#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)

संरचनाएं

टेंसोफ़्लो :: ऑप्स :: 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 

ऑपरेटर :: टेंसरफ़्लो :: इनपुट

 operator::tensorflow::Input() const 
है

ऑपरेटर :: टेंसरफ़्लो :: आउटपुट

 operator::tensorflow::Output() const 

सार्वजनिक स्थैतिक कार्य

उत्पादन का प्रकार

Attrs OutputType(
  DataType x
)