সেন্সরফ্লো :: অপস :: ম্যাকপুলউইথআর্গ্মেক্স
#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)
করার আগে সর্বদা [0, height) x [0, width)
থাকে। এটি একটি বাগ, তবে এটি নিরাপদ পিছনে সামঞ্জস্যপূর্ণ উপায়ে করা ঠিক করা বিশেষত চাটুকারণের কারণে।
যুক্তি:
- সুযোগ: একটি স্কোপ অবজেক্ট
- ইনপুট: আকৃতির
[batch, height, width, channels]
সহ 4-ডি। পুল শেষ ইনপুট । - ksize: ইনপুট টেনসরের প্রতিটি মাত্রার জন্য উইন্ডোর আকার।
- স্ট্রাইডস: ইনপুট টেনসরের প্রতিটি মাত্রার জন্য স্লাইডিং উইন্ডোর স্ট্রাইড।
- প্যাডিং: প্যাডিং অ্যালগরিদমের ধরণটি।
-
argmax
সূচিতে ব্যাচের মাত্রা অন্তর্ভুক্ত করা হবে কিনা।
রিটার্নস:
-
Output
আউটপুট: সর্বাধিক পোল্ড আউটপুট টেনসর। -
Output
আরগম্যাক্স: 4-ডি। প্রতিটি আউটপুটের জন্য নির্বাচিত সর্বাধিক মানগুলির সমতল সূচকগুলি।
নির্মাণকারী এবং ধ্বংসকারী | |
---|---|
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) |
স্ট্রাক্টস | |
---|---|
টেনসরফ্লো :: অপ্স :: ম্যাকসপুলউইথআর্গমােক্স :: অ্যাটার্স | ম্যাকপুলউইথআরগম্যাক্সের জন্য ptionচ্ছিক অ্যাট্রিবিউট সেটটার । |
জনসাধারণের গুণাবলী
আরগম্যাক্স
::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 )
পাবলিক স্ট্যাটিক ফাংশন
IncludBatchInIndex
Attrs IncludeBatchInIndex( bool x )
তারগম্যাক্স
Attrs Targmax( DataType x )