টেনসরফ্লো :: অপস:: 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() const 

অপারেটর::টেনসরফ্লো::আউটপুট

 operator::tensorflow::Output() const 

পাবলিক স্ট্যাটিক ফাংশন

আউটপুট টাইপ

Attrs OutputType(
  DataType x
)