tensorflow:: عملیات:: MaxPoolWithArgmax

#include <nn_ops.h>

حداکثر ادغام (max pooling) را روی ورودی انجام می‌دهد و هم مقادیر حداکثر و هم شاخص‌ها را خروجی می‌دهد.

خلاصه

شاخص‌های 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) قرار می‌گیرند، حتی اگر padding انجام شده باشد و پاسخ صحیح ریاضی خارج از آن باشد (یا منفی یا خیلی بزرگ). این یک اشکال است، اما رفع آن به روشی ایمن و سازگار با نسخه‌های قبلی، به ویژه به دلیل مسطح‌سازی، دشوار است.

استدلال‌ها:

  • دامنه: یک شیء دامنه
  • ورودی: چهاربعدی با شکل [batch, height, width, channels] . ورودی برای ادغام.
  • ksize: اندازه پنجره برای هر بُعد از تانسور ورودی.
  • گام‌ها: گام پنجره کشویی برای هر بُعد از تانسور ورودی.
  • padding: نوع الگوریتم padding مورد استفاده.

ویژگی‌های اختیاری (به Attrs مراجعه کنید):

  • include_batch_in_index: آیا بُعد دسته‌ای در اندیس مسطح‌شده‌ی argmax لحاظ شود یا خیر.

بازده:

  • خروجی Output : حداکثر تانسور خروجی تجمیع شده.
  • Output argmax: 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:: عملیات:: MaxPoolWithArgmax:: جاذبه‌ها

تنظیم‌کننده‌های ویژگی اختیاری برای 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
)

توابع استاتیک عمومی

شامل کردنBatchInindex

Attrs IncludeBatchInIndex(
  bool x
)

تارگمکس

Attrs Targmax(
  DataType x
)