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: 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

 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
)