tensorflow:: ops:: MaxPoolWithArgmax

#include <nn_ops.h>

מבצע איגום מקסימלי על הקלט והפלט הן ערכים מקסימליים והן אינדקסים.

תַקצִיר

האינדקסים ב- argmax שטוחים, כך שערך מקסימלי במיקום [b, y, x, c] הופך לאינדקס שטוח: (y * width + x) * channels + c if include_batch_in_index is False; ((b * height + y) * width + x) * channels + c if include_batch_in_index is True).

האינדקסים המוחזרים תמיד נמצאים ב- [0, height) x [0, width) לפני השיטוח, גם אם מעורב ריפוד והתשובה הנכונה מבחינה מתמטית נמצאת מחוץ ל-(שלילי או גדול מדי). זהו באג, אך קשה לתקן אותו בצורה בטוחה ותואמת לאחור, במיוחד בגלל השיטוח.

טיעונים:

  • היקף: אובייקט היקף
  • קלט: 4-ממדי עם צורה [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 .

מאפיינים ציבוריים

ארגמקס

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

פונקציות סטטיות ציבוריות

כלול אצווה באינדקס

Attrs IncludeBatchInIndex(
  bool x
)

טארגמקס

Attrs Targmax(
  DataType x
)