تدفق التوتر:: العمليات:: MaxPoolWithArgmax

#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 : موتر الإخراج المجمع الأقصى.
  • الحد الأقصى Output : 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 .

الصفات العامة

com.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
)

وظائف ثابتة العامة

تضمينBatchInIndex

Attrs IncludeBatchInIndex(
  bool x
)

تارجماكس

Attrs Targmax(
  DataType x
)