/cmsis-nn-latest/Source/ConvolutionFunctions/ |
D | arm_convolve_1_x_n_s4.c | 78 const uint16_t pad_x = conv_params->padding.w; in arm_convolve_1_x_n_s4() local 85 if (pad_x * 2 + asym_pad != total_pad) in arm_convolve_1_x_n_s4() 90 …const int32_t right_pad_num = pad_x + asym_pad != 0 ? MAX(1, (pad_x + asym_pad + stride_x - 1) / s… in arm_convolve_1_x_n_s4() 91 const int32_t left_pad_num = pad_x != 0 ? MAX(1, (pad_x + stride_x - 1) / stride_x) : 0; in arm_convolve_1_x_n_s4() 111 const int32_t est_input_x_idx = stride_x * i - pad_x; in arm_convolve_1_x_n_s4() 127 int32_t input_start = stride_x * lhs_rows - pad_x; in arm_convolve_1_x_n_s4() 163 const int32_t est_input_x_idx = stride_x * i - pad_x; in arm_convolve_1_x_n_s4()
|
D | arm_convolve_1_x_n_s8.c | 76 const int32_t pad_x = conv_params->padding.w; in arm_convolve_1_x_n_s8() local 83 if (pad_x * 2 + asym_pad != total_pad) in arm_convolve_1_x_n_s8() 88 …const int32_t right_pad_num = pad_x + asym_pad != 0 ? MAX(1, (pad_x + asym_pad + stride_x - 1) / s… in arm_convolve_1_x_n_s8() 89 const int32_t left_pad_num = pad_x != 0 ? MAX(1, (pad_x + stride_x - 1) / stride_x) : 0; in arm_convolve_1_x_n_s8() 92 const int32_t pad_size_left = pad_x * input_ch; in arm_convolve_1_x_n_s8() 147 int32_t input_start = stride_x * lhs_rows - pad_x; in arm_convolve_1_x_n_s8() 185 input_start = (stride_x * (left_pad_num + no_pad_num) - pad_x) * input_ch; in arm_convolve_1_x_n_s8()
|
D | arm_convolve_get_buffer_sizes_s8.c | 61 const int32_t pad_x = conv_params->padding.w; in arm_convolve_1_x_n_s8_get_buffer_size_mve() local 68 …const int32_t right_pad_num = pad_x + asym_pad != 0 ? MAX(1, (pad_x + asym_pad + stride_x - 1) / s… in arm_convolve_1_x_n_s8_get_buffer_size_mve() 69 const int32_t left_pad_num = pad_x != 0 ? MAX(1, (pad_x + stride_x - 1) / stride_x) : 0; in arm_convolve_1_x_n_s8_get_buffer_size_mve() 77 const int32_t pad_size_left = pad_x * input_dims->c; in arm_convolve_1_x_n_s8_get_buffer_size_mve()
|
D | arm_convolve_get_buffer_sizes_s4.c | 61 const int32_t pad_x = conv_params->padding.w; in arm_convolve_1_x_n_s4_get_buffer_size_mve() local 68 …const int32_t right_pad_num = pad_x + asym_pad != 0 ? MAX(1, (pad_x + asym_pad + stride_x - 1) / s… in arm_convolve_1_x_n_s4_get_buffer_size_mve() 69 const int32_t left_pad_num = pad_x != 0 ? MAX(1, (pad_x + stride_x - 1) / stride_x) : 0; in arm_convolve_1_x_n_s4_get_buffer_size_mve()
|
D | arm_transpose_conv_s8.c | 82 const int32_t pad_x = transpose_conv_params->padding.w; in arm_transpose_conv_s8() local 148 const int32_t col_x = (output_x + pad_x_offset + pad_x - kernel_x) / stride_x + 1; in arm_transpose_conv_s8() 153 for (int i_col_x = 0, i_pad_x = -pad_x; i_col_x < col_x; i_col_x++, i_pad_x += stride_x) in arm_transpose_conv_s8()
|
D | arm_depthwise_conv_s16.c | 52 const int32_t pad_x, in depthwise_conv_s16_mult_4_s16() argument 67 …for (int32_t in_w = -pad_x, out_w = 0, ker_h_start = MAX(0, -in_h); out_w < output_x; in_w += stri… in depthwise_conv_s16_mult_4_s16() 142 const uint16_t pad_x, in depthwise_conv_s16_generic_s16() argument 165 const int16_t base_idx_x = (i_out_x * stride_x) - pad_x; in depthwise_conv_s16_generic_s16()
|
D | arm_depthwise_conv_s8.c | 56 const int32_t pad_x, in depthwise_conv_s8_mult_4() argument 78 …for (int32_t in_w = -pad_x, out_w = 0, ker_h_start = MAX(0, -in_h); out_w < output_x; in_w += stri… in depthwise_conv_s8_mult_4() 164 const uint16_t pad_x, in depthwise_conv_s8_generic() argument 193 const int16_t base_idx_x = (i_out_x * stride_x) - pad_x; in depthwise_conv_s8_generic()
|
D | arm_convolve_s4.c | 80 const uint16_t pad_x = conv_params->padding.w; in arm_convolve_s4() local 110 const int32_t base_idx_x = stride_x * i_out_x - pad_x; in arm_convolve_s4() 194 const int32_t base_idx_x = stride_x * i_out_x - pad_x; in arm_convolve_s4()
|
D | arm_convolve_s16.c | 83 const int32_t pad_x = conv_params->padding.w; in arm_convolve_s16() local 109 const int32_t base_idx_x = stride_x * i_out_x - pad_x; in arm_convolve_s16()
|
D | arm_depthwise_conv_3x3_s8.c | 71 const int32_t pad_x = dw_conv_params->padding.w; in arm_depthwise_conv_3x3_s8() local 90 if (pad_x > 1 || filter_dims->w != 3 || filter_dims->h != 3) in arm_depthwise_conv_3x3_s8() 97 …for (int32_t in_w = -pad_x, out_w = 0, ker_h_start = MAX(0, -in_h); out_w < output_x; in_w += stri… in arm_depthwise_conv_3x3_s8()
|
D | arm_convolve_s8.c | 80 const uint16_t pad_x = conv_params->padding.w; in arm_convolve_s8() local 134 const int32_t base_idx_x = stride_x * i_out_x - pad_x; in arm_convolve_s8()
|
D | arm_depthwise_conv_s8_opt.c | 82 const int32_t pad_x = dw_conv_params->padding.w; in arm_depthwise_conv_s8_opt() local 115 … for (int i_out_x = 0, base_idx_x = -pad_x; i_out_x < output_x; base_idx_x += stride_x, i_out_x++) in arm_depthwise_conv_s8_opt() 225 const int16_t base_idx_x = (i_out_x * stride_x) - pad_x; in arm_depthwise_conv_s8_opt()
|
D | arm_depthwise_conv_fast_s16.c | 89 const int32_t pad_x = dw_conv_params->padding.w; in arm_depthwise_conv_fast_s16() local 112 … for (int i_out_x = 0, base_idx_x = -pad_x; i_out_x < output_x; base_idx_x += stride_x, i_out_x++) in arm_depthwise_conv_fast_s16() 236 const int16_t base_idx_x = (i_out_x * stride_x) - pad_x; in arm_depthwise_conv_fast_s16()
|
D | arm_depthwise_conv_s4.c | 53 const int32_t pad_x, in depthwise_conv_s4_generic() argument 85 const int16_t base_idx_x = (i_out_x * stride_x) - pad_x; in depthwise_conv_s4_generic() 376 const int16_t base_idx_x = (i_out_x * stride_x) - pad_x; in depthwise_conv_s4_generic()
|
D | arm_depthwise_conv_s4_opt.c | 83 const int32_t pad_x = dw_conv_params->padding.w; in arm_depthwise_conv_s4_opt() local 116 … for (int i_out_x = 0, base_idx_x = -pad_x; i_out_x < output_x; base_idx_x += stride_x, i_out_x++) in arm_depthwise_conv_s4_opt() 267 const int16_t base_idx_x = (i_out_x * stride_x) - pad_x; in arm_depthwise_conv_s4_opt()
|
/cmsis-nn-latest/Tests/UnitTest/RefactoredTestGen/Lib/ |
D | op_conv.py | 159 pad_x = pad_left 162 pad_x = 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) 203 generated_params["pad_x"] = pad_x
|
/cmsis-nn-latest/Source/PoolingFunctions/ |
D | arm_avgpool_s8.c | 92 const int32_t pad_x = pool_params->padding.w; in arm_avgpool_s8() local 114 const int32_t k_x_start = MAX(0, i_x * stride_x - pad_x); in arm_avgpool_s8() 115 const int32_t k_x_end = MIN(i_x * stride_x - pad_x + kernel_x, input_x); in arm_avgpool_s8() 253 const int32_t pad_x = pool_params->padding.w; in arm_avgpool_s8() local 279 for (int i_x = 0, idx_x = -pad_x; i_x < output_x; idx_x += stride_x, i_x++) in arm_avgpool_s8() 351 … for (int k_x = i_x * stride_x - pad_x; k_x < i_x * stride_x - pad_x + kernel_x; k_x++) in arm_avgpool_s8()
|
D | arm_avgpool_s16.c | 90 const int32_t pad_x = pool_params->padding.w; in arm_avgpool_s16() local 116 const int32_t k_x_start = MAX(0, i_x * stride_x - pad_x); in arm_avgpool_s16() 117 const int32_t k_x_end = MIN(i_x * stride_x - pad_x + kernel_x, input_x); in arm_avgpool_s16() 215 for (int i_x = 0, idx_x = -pad_x; i_x < output_x; idx_x += stride_x, i_x++) in arm_avgpool_s16() 278 for (int i_x = 0, base_idx_x = -pad_x; i_x < output_x; base_idx_x += stride_x, i_x++) in arm_avgpool_s16()
|
D | arm_max_pool_s16.c | 163 const int32_t pad_x = pool_params->padding.w; in arm_max_pool_s16() local 182 for (int i_x = 0, base_idx_x = -pad_x; i_x < output_x; base_idx_x += stride_x, i_x++) in arm_max_pool_s16()
|
D | arm_max_pool_s8.c | 180 const int32_t pad_x = pool_params->padding.w; in arm_max_pool_s8() local 198 for (int i_x = 0, base_idx_x = -pad_x; i_x < output_x; base_idx_x += stride_x, i_x++) in arm_max_pool_s8()
|
/cmsis-nn-latest/Tests/UnitTest/ |
D | model_extractor.py | 117 f.write("#define {}_PAD_X {}\n".format(prefix, self.pad_x)) 119 f.write("#define {}_PAD_W {}\n".format(prefix, self.pad_x))
|
D | test_settings.py | 328 f.write("#define {}_PAD_X {}\n".format(prefix, self.pad_x)) 417 self.pad_x = pad_left 420 self.pad_x = 0
|