tensorflow:: אופס:: 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)
לפני הרידוד, גם אם מדובר בריפוד והתשובה הנכונה מבחינה מתמטית נמצאת בחוץ (שלילית או גדולה מדי). זהו באג, אך קשה לתקן אותו בצורה בטוחה תואמת לאחור, במיוחד בגלל השטחה.
טיעונים:
- scope: אובייקט Scope
- קלט: 4-D עם צורה
[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) |
פונקציות סטטיות ציבוריות | |
---|---|
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
)