সেন্সরফ্লো :: অপস :: আরগম্যাক্স
#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) |
স্ট্রাক্টস | |
---|---|
টেনসরফ্লো :: অপস :: আরগম্যাক্স :: অ্যাটার্স | আরগম্যাক্সের জন্য ptionচ্ছিক অ্যাট্রিবিউট সেটটার । |
জনসাধারণের গুণাবলী
অপারেশন
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 )