টেনসরফ্লো :: অপস:: ম্যাক্সপুল উইথআর্গম্যাক্স
#include <nn_ops.h>ইনপুটে সর্বোচ্চ পুলিং সঞ্চালন করে এবং সর্বোচ্চ মান এবং সূচক উভয়ই আউটপুট করে।
সারাংশ
argmax সূচকগুলি সমতল করা হয়, যাতে অবস্থানে সর্বাধিক মান [b, y, x, c] সমতল সূচকে পরিণত হয়: (y * width + x) * channels + c যদি include_batch_in_index মিথ্যা হয়; ((b * height + y) * width + x) * channels + c যদি include_batch_in_index সত্য হয়।
প্রত্যাবর্তিত সূচকগুলি সমতল হওয়ার আগে সর্বদা [0, height) x [0, width) থাকে, এমনকি যদি প্যাডিং জড়িত থাকে এবং গাণিতিকভাবে সঠিক উত্তর বাইরে থাকে (হয় ঋণাত্মক বা খুব বড়)। এটি একটি বাগ, তবে এটি ঠিক করা একটি নিরাপদ ব্যাকওয়ার্ড সামঞ্জস্যপূর্ণ উপায়ে করা কঠিন, বিশেষ করে চ্যাপ্টা হওয়ার কারণে।
যুক্তি:
- স্কোপ: একটি স্কোপ অবজেক্ট
- ইনপুট: আকৃতি সহ 4-D
[batch, height, width, channels]। পুল ওভার ইনপুট . - ksize: ইনপুট টেনসরের প্রতিটি মাত্রার জন্য উইন্ডোর আকার।
- স্ট্রাইডস: ইনপুট টেনসরের প্রতিটি মাত্রার জন্য স্লাইডিং উইন্ডোর অগ্রগতি।
- প্যাডিং: ব্যবহার করার জন্য প্যাডিং অ্যালগরিদমের ধরন।
ঐচ্ছিক বৈশিষ্ট্য (দেখুন Attrs ):
- Include_batch_in_index:
argmaxএর সমতল সূচকে ব্যাচের মাত্রা অন্তর্ভুক্ত করতে হবে কিনা।
রিটার্ন:
-
Outputআউটপুট: সর্বোচ্চ পুল আউটপুট টেনসর। -
Outputargmax: 4-D. প্রতিটি আউটপুটের জন্য নির্বাচিত সর্বোচ্চ মানের সমতল সূচক।
কনস্ট্রাক্টর এবং ডেস্ট্রাক্টর | |
|---|---|
MaxPoolWithArgmax (const :: tensorflow::Scope & scope, :: tensorflow::Input input, const gtl::ArraySlice< int > & ksize, const gtl::ArraySlice< int > & strides, StringPiece padding) | |
MaxPoolWithArgmax (const :: tensorflow::Scope & scope, :: tensorflow::Input input, const gtl::ArraySlice< int > & ksize, const gtl::ArraySlice< int > & strides, StringPiece padding, const MaxPoolWithArgmax::Attrs & attrs) |
পাবলিক বৈশিষ্ট্য | |
|---|---|
argmax | |
operation | |
output | |
পাবলিক স্ট্যাটিক ফাংশন | |
|---|---|
IncludeBatchInIndex (bool x) | |
Targmax (DataType x) | |
কাঠামো | |
|---|---|
| tensorflow:: ops:: MaxPoolWithArgmax:: Attrs | MaxPoolWithArgmax- এর জন্য ঐচ্ছিক অ্যাট্রিবিউট সেটার। |
পাবলিক বৈশিষ্ট্য
argmax
::tensorflow::Output argmax
অপারেশন
Operation operation
আউটপুট
::tensorflow::Output output
পাবলিক ফাংশন
ম্যাক্সপুল উইথআর্গম্যাক্স
MaxPoolWithArgmax( const ::tensorflow::Scope & scope, ::tensorflow::Input input, const gtl::ArraySlice< int > & ksize, const gtl::ArraySlice< int > & strides, StringPiece padding )
ম্যাক্সপুল উইথআর্গম্যাক্স
MaxPoolWithArgmax( const ::tensorflow::Scope & scope, ::tensorflow::Input input, const gtl::ArraySlice< int > & ksize, const gtl::ArraySlice< int > & strides, StringPiece padding, const MaxPoolWithArgmax::Attrs & attrs )
পাবলিক স্ট্যাটিক ফাংশন
ব্যাচ ইন ইনডেক্স অন্তর্ভুক্ত করুন
Attrs IncludeBatchInIndex( bool x )
টার্গম্যাক্স
Attrs Targmax( DataType x )