Home
last modified time | relevance | path

Searched refs:pad_y (Results 1 – 18 of 18) sorted by relevance

/cmsis-nn-latest/Tests/UnitTest/RefactoredTestGen/Lib/
Dop_conv.py160 pad_y = pad_top
163 pad_y = 0
167 return pad_y_with_offset, pad_x_with_offset, pad_y, pad_x
169 … pad_y_with_offset, pad_x_with_offset, pad_y, pad_x = calculate_padding(x_output, y_output, params)
204 generated_params["pad_y"] = pad_y
/cmsis-nn-latest/Source/PoolingFunctions/
Darm_avgpool_s8.c91 const int32_t pad_y = pool_params->padding.h; in arm_avgpool_s8() local
111 const int32_t k_y_start = MAX(0, i_y * stride_y - pad_y); in arm_avgpool_s8()
112 const int32_t k_y_end = MIN(i_y * stride_y - pad_y + kernel_y, input_y); in arm_avgpool_s8()
252 const int32_t pad_y = pool_params->padding.h; in arm_avgpool_s8() local
277 for (int i_y = 0, idx_y = -pad_y; i_y < output_y; idx_y += stride_y, i_y++) in arm_avgpool_s8()
349 … for (int k_y = i_y * stride_y - pad_y; k_y < i_y * stride_y - pad_y + kernel_y; k_y++) in arm_avgpool_s8()
Darm_avgpool_s16.c89 const int32_t pad_y = pool_params->padding.h; in arm_avgpool_s16() local
113 const int32_t k_y_start = MAX(0, i_y * stride_y - pad_y); in arm_avgpool_s16()
114 const int32_t k_y_end = MIN(i_y * stride_y - pad_y + kernel_y, input_y); in arm_avgpool_s16()
213 for (int i_y = 0, idx_y = -pad_y; i_y < output_y; idx_y += stride_y, i_y++) in arm_avgpool_s16()
276 for (int i_y = 0, base_idx_y = -pad_y; i_y < output_y; base_idx_y += stride_y, i_y++) in arm_avgpool_s16()
Darm_max_pool_s16.c162 const int32_t pad_y = pool_params->padding.h; in arm_max_pool_s16() local
180 for (int i_y = 0, base_idx_y = -pad_y; i_y < output_y; base_idx_y += stride_y, i_y++) in arm_max_pool_s16()
Darm_max_pool_s8.c179 const int32_t pad_y = pool_params->padding.h; in arm_max_pool_s8() local
196 for (int i_y = 0, base_idx_y = -pad_y; i_y < output_y; base_idx_y += stride_y, i_y++) in arm_max_pool_s8()
/cmsis-nn-latest/Source/ConvolutionFunctions/
Darm_transpose_conv_s8.c83 const int32_t pad_y = transpose_conv_params->padding.h; in arm_transpose_conv_s8() local
147 const int32_t col_y = (output_y + pad_y_offset + pad_y - kernel_y) / stride_y + 1; in arm_transpose_conv_s8()
151 for (int i_col_y = 0, i_pad_y = -pad_y; i_col_y < col_y; i_col_y++, i_pad_y += stride_y) in arm_transpose_conv_s8()
Darm_depthwise_conv_s16.c53 const int32_t pad_y, in depthwise_conv_s16_mult_4_s16() argument
65 for (int32_t in_h = -pad_y, out_h = 0, out_idx = 0; out_h < output_y; in_h += stride_y, ++out_h) in depthwise_conv_s16_mult_4_s16()
143 const uint16_t pad_y, in depthwise_conv_s16_generic_s16() argument
162 const int16_t base_idx_y = (i_out_y * stride_y) - pad_y; in depthwise_conv_s16_generic_s16()
Darm_depthwise_conv_s8.c57 const int32_t pad_y, in depthwise_conv_s8_mult_4() argument
76 for (int32_t in_h = -pad_y, out_h = 0; out_h < output_y; in_h += stride_y, ++out_h) in depthwise_conv_s8_mult_4()
165 const uint16_t pad_y, in depthwise_conv_s8_generic() argument
190 const int16_t base_idx_y = (i_out_y * stride_y) - pad_y; in depthwise_conv_s8_generic()
Darm_convolve_s4.c81 const uint16_t pad_y = conv_params->padding.h; in arm_convolve_s4() local
111 const int32_t base_idx_y = stride_y * i_out_y - pad_y; in arm_convolve_s4()
195 const int32_t base_idx_y = stride_y * i_out_y - pad_y; in arm_convolve_s4()
Darm_convolve_s16.c84 const int32_t pad_y = conv_params->padding.h; in arm_convolve_s16() local
110 const int32_t base_idx_y = stride_y * i_out_y - pad_y; in arm_convolve_s16()
Darm_convolve_s8.c81 const uint16_t pad_y = conv_params->padding.h; in arm_convolve_s8() local
135 const int32_t base_idx_y = stride_y * i_out_y - pad_y; in arm_convolve_s8()
Darm_depthwise_conv_s8_opt.c83 const int32_t pad_y = dw_conv_params->padding.h; in arm_depthwise_conv_s8_opt() local
113 … for (int i_out_y = 0, base_idx_y = -pad_y; i_out_y < output_y; base_idx_y += stride_y, i_out_y++) in arm_depthwise_conv_s8_opt()
222 const int16_t base_idx_y = (i_out_y * stride_y) - pad_y; in arm_depthwise_conv_s8_opt()
Darm_depthwise_conv_fast_s16.c90 const int32_t pad_y = dw_conv_params->padding.h; in arm_depthwise_conv_fast_s16() local
110 … for (int i_out_y = 0, base_idx_y = -pad_y; i_out_y < output_y; base_idx_y += stride_y, i_out_y++) in arm_depthwise_conv_fast_s16()
233 const int16_t base_idx_y = (i_out_y * stride_y) - pad_y; in arm_depthwise_conv_fast_s16()
Darm_depthwise_conv_s4.c54 const int32_t pad_y, in depthwise_conv_s4_generic() argument
82 const int16_t base_idx_y = (i_out_y * stride_y) - pad_y; in depthwise_conv_s4_generic()
373 const int16_t base_idx_y = (i_out_y * stride_y) - pad_y; in depthwise_conv_s4_generic()
Darm_depthwise_conv_3x3_s8.c72 const int32_t pad_y = dw_conv_params->padding.h; in arm_depthwise_conv_3x3_s8() local
95 for (int32_t in_h = -pad_y, out_h = 0, out_idx = 0; out_h < output_y; in_h += stride_y, ++out_h) in arm_depthwise_conv_3x3_s8()
Darm_depthwise_conv_s4_opt.c84 const int32_t pad_y = dw_conv_params->padding.h; in arm_depthwise_conv_s4_opt() local
114 … for (int i_out_y = 0, base_idx_y = -pad_y; i_out_y < output_y; base_idx_y += stride_y, i_out_y++) in arm_depthwise_conv_s4_opt()
264 const int16_t base_idx_y = (i_out_y * stride_y) - pad_y; in arm_depthwise_conv_s4_opt()
/cmsis-nn-latest/Tests/UnitTest/
Dmodel_extractor.py118 f.write("#define {}_PAD_Y {}\n".format(prefix, self.pad_y))
120 f.write("#define {}_PAD_H {}\n".format(prefix, self.pad_y))
Dtest_settings.py329 f.write("#define {}_PAD_Y {}\n".format(prefix, self.pad_y))
418 self.pad_y = pad_top
421 self.pad_y = 0