tensorflow:: ops:: MaxPoolWithArgmax

#include <nn_ops.h>

ইনপুটের উপর ম্যাক্স পুলিং প্রয়োগ করে এবং সর্বোচ্চ মান ও সূচক উভয়ই আউটপুট হিসেবে প্রদান করে।

সারসংক্ষেপ

argmax এর ভেতরের ইনডেক্সগুলোকে ফ্ল্যাট করা হয়, ফলে [b, y, x, c] অবস্থানে থাকা সর্বোচ্চ মানটি ফ্ল্যাট করা ইনডেক্সে পরিণত হয়: (y * width + x) * channels + c যদি include_batch_in_index False হয়; ((b * height + y) * width + x) * channels + c যদি include_batch_in_index মান True হয়।

ফ্ল্যাটেনিং-এর আগে, ফেরত আসা ইন্ডেক্সগুলো সর্বদা [0, height) x [0, width) পরিসরের মধ্যে থাকে, এমনকি যদি প্যাডিং ব্যবহার করা হয় এবং গাণিতিকভাবে সঠিক উত্তরটি এর বাইরে (হয় ঋণাত্মক বা খুব বড়) হয়। এটি একটি বাগ, কিন্তু বিশেষ করে ফ্ল্যাটেনিং-এর কারণে, নিরাপদ এবং ব্যাকওয়ার্ড কম্প্যাটিবল উপায়ে এটি ঠিক করা কঠিন।

যুক্তি:

  • স্কোপ: একটি স্কোপ অবজেক্ট
  • ইনপুট: [batch, height, width, channels] আকৃতির ৪-মাত্রিক বস্তু। পুল করার জন্য ইনপুট ।
  • ksize: ইনপুট টেনসরের প্রতিটি ডাইমেনশনের জন্য উইন্ডোর আকার।
  • স্ট্রাইডস: ইনপুট টেনসরের প্রতিটি ডাইমেনশনের জন্য স্লাইডিং উইন্ডোর স্ট্রাইড।
  • প্যাডিং: কোন ধরনের প্যাডিং অ্যালগরিদম ব্যবহার করা হবে।

ঐচ্ছিক অ্যাট্রিবিউটসমূহ (দেখুন Attrs ):

  • include_batch_in_index: argmax এর ফ্ল্যাট করা ইনডেক্সে ব্যাচ ডাইমেনশন অন্তর্ভুক্ত করা হবে কিনা।

ফেরত:

  • Output : সর্বোচ্চ পুলড আউটপুট টেনসর।
  • Output argmax: ৪-মাত্রিক। প্রতিটি আউটপুটের জন্য নির্বাচিত সর্বোচ্চ মানগুলোর সমতলীকৃত সূচকসমূহ।

নির্মাতা এবং ধ্বংসকারী

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-এর জন্য ঐচ্ছিক অ্যাট্রিবিউট সেটার।

জনসাধারণের বৈশিষ্ট্য

আর্গম্যাক্স

::tensorflow::Output argmax

অপারেশন

Operation operation

আউটপুট

::tensorflow::Output output

জনসাধারণের কার্যাবলী

MaxPoolWithArgmax

 MaxPoolWithArgmax(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  const gtl::ArraySlice< int > & ksize,
  const gtl::ArraySlice< int > & strides,
  StringPiece padding
)

MaxPoolWithArgmax

 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
)