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