File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -173,10 +173,10 @@ static inline void __attribute__((always_inline)) avepool_hwc(
173173
174174template <typename io_T>
175175static inline void __attribute__ ((always_inline)) avepool_hwc_krnpad(
176- const int row_beg,
177- const int row_end,
178- const int clmn_beg,
179- const int clmn_end,
176+ int row_beg,
177+ int row_end,
178+ int clmn_beg,
179+ int clmn_end,
180180 const MLI_PTR (io_T) __restrict in_ftrs,
181181 MLI_OUT_PTR(io_T) __restrict out_ftrs,
182182 const int channels,
@@ -195,10 +195,10 @@ static inline void __attribute__((always_inline)) avepool_hwc_krnpad(
195195 // Phase 1: Process central part (without border effects - padding free)
196196 // =======================================================================
197197
198- const int row_beg = CEIL_DIV (padding_top, stride_height);
199- const int row_end = out_height - CEIL_DIV (padding_bot, stride_height);
200- const int clmn_beg = CEIL_DIV (padding_left, stride_width);
201- const int clmn_end = out_width - CEIL_DIV (padding_right, stride_width);
198+ row_beg = CEIL_DIV (padding_top, stride_height);
199+ row_end = out_height - CEIL_DIV (padding_bot, stride_height);
200+ clmn_beg = CEIL_DIV (padding_left, stride_width);
201+ clmn_end = out_width - CEIL_DIV (padding_right, stride_width);
202202
203203 if ((row_end - row_beg > 0 ) && (clmn_end - clmn_beg > 0 )) {
204204 avepool_hwc_nopad (
Original file line number Diff line number Diff line change @@ -191,10 +191,10 @@ static inline void __attribute__((always_inline)) maxpool_hwc_pad(
191191
192192 // Phase 1: Process central part (without border effects - padding free)
193193 // =======================================================================
194- int row_beg = CEIL_DIV (padding_top, stride_height);
195- int row_end = out_height - CEIL_DIV (padding_bot, stride_height);
196- int clmn_beg = CEIL_DIV (padding_left, stride_width);
197- int clmn_end = out_width - CEIL_DIV (padding_right, stride_width);
194+ row_beg = CEIL_DIV (padding_top, stride_height);
195+ row_end = out_height - CEIL_DIV (padding_bot, stride_height);
196+ clmn_beg = CEIL_DIV (padding_left, stride_width);
197+ clmn_end = out_width - CEIL_DIV (padding_right, stride_width);
198198
199199 if ((row_end - row_beg > 0 ) && (clmn_end - clmn_beg > 0 )) {
200200 maxpool_hwc_nopad<io_T>(
You can’t perform that action at this time.
0 commit comments