Home
last modified time | relevance | path

Searched refs:input_offset (Results 1 – 25 of 47) sorted by relevance

12

/cmsis-nn-latest/Source/ConvolutionFunctions/
Darm_depthwise_conv_3x3_s8.c80 const int32_t input_offset = dw_conv_params->input_offset; in arm_depthwise_conv_3x3_s8() local
120 const uint32_t lhs_offset_s16x2 = PKHBT(input_offset, input_offset, 16); in arm_depthwise_conv_3x3_s8()
187 out_buff0 += ((int8_t)in_val + input_offset) * (int8_t)ker_val; in arm_depthwise_conv_3x3_s8()
188 … out_buff1 += ((int8_t)(in_val >> 8) + input_offset) * (int8_t)(ker_val >> 8); in arm_depthwise_conv_3x3_s8()
189 … out_buff2 += ((int8_t)(in_val >> 16) + input_offset) * (int8_t)(ker_val >> 16); in arm_depthwise_conv_3x3_s8()
190 … out_buff3 += ((int8_t)(in_val >> 24) + input_offset) * (int8_t)(ker_val >> 24); in arm_depthwise_conv_3x3_s8()
196 out_buff0 += ((int8_t)in_val + input_offset) * (int8_t)ker_val; in arm_depthwise_conv_3x3_s8()
197 out_buff1 += ((int8_t)(in_val >> 8) + input_offset) * (int8_t)(ker_val >> 8); in arm_depthwise_conv_3x3_s8()
198 out_buff2 += ((int8_t)(in_val >> 16) + input_offset) * (int8_t)(ker_val >> 16); in arm_depthwise_conv_3x3_s8()
199 out_buff3 += ((int8_t)(in_val >> 24) + input_offset) * (int8_t)(ker_val >> 24); in arm_depthwise_conv_3x3_s8()
[all …]
Darm_convolve_1_x_n_s8.c123 …arm_memset_s8(im2col, (int8_t)-conv_params->input_offset, sizeof(int8_t) * (uint32_t)pad_size_left… in arm_convolve_1_x_n_s8()
136 conv_params->input_offset, in arm_convolve_1_x_n_s8()
166 conv_params->input_offset, in arm_convolve_1_x_n_s8()
189 …arm_memset_s8(im2col, (int8_t)-conv_params->input_offset, sizeof(int8_t) * (uint32_t)pad_size_righ… in arm_convolve_1_x_n_s8()
200 conv_params->input_offset, in arm_convolve_1_x_n_s8()
Darm_convolve_s8.c89 const int32_t input_offset = conv_params->input_offset; in arm_convolve_s8() local
146 … arm_memset_s8(im2col_buf, (int8_t)-input_offset, sizeof(int8_t) * kernel_ch); in arm_convolve_s8()
174 input_offset, in arm_convolve_s8()
190 … im2col_buf - rhs_cols, im2col_buf_start_s16, rhs_cols, (int16_t)input_offset); in arm_convolve_s8()
194 … im2col_buf - rhs_cols, im2col_buf_start_s16, rhs_cols, (int16_t)input_offset); in arm_convolve_s8()
260 input_offset, in arm_convolve_s8()
Darm_convolve_s4.c90 const int32_t input_offset = conv_params->input_offset; in arm_convolve_s4() local
122 … arm_memset_s8(im2col_buf, (int8_t)-input_offset, sizeof(int8_t) * input_ch); in arm_convolve_s4()
145 input_offset, in arm_convolve_s4()
175 input_offset, in arm_convolve_s4()
213 … input_data + (k_y * input_x + k_x) * input_ch, two_column_buf, input_ch, input_offset); in arm_convolve_s4()
Darm_depthwise_conv_s8.c67 const int32_t input_offset, in depthwise_conv_s8_mult_4() argument
108 int32_t in_val = input[in_idx + ker_w * input_ch] + input_offset; in depthwise_conv_s8_mult_4()
175 const int32_t input_offset, in depthwise_conv_s8_generic() argument
246 acc_0 += (input[idx_0] + input_offset) * kernel[ker_idx_0]; in depthwise_conv_s8_generic()
314 dw_conv_params->input_offset, in arm_depthwise_conv_s8()
341 dw_conv_params->input_offset, in arm_depthwise_conv_s8()
Darm_convolve_1x1_s4_fast.c85 conv_params->input_offset, in arm_convolve_1x1_s4_fast()
Darm_convolve_1x1_s8_fast.c85 conv_params->input_offset, in arm_convolve_1x1_s8_fast()
Darm_depthwise_conv_s4.c64 const int32_t input_offset, in depthwise_conv_s4_generic() argument
150 acc_0 += (input[idx_0] + input_offset) * ker_val0; in depthwise_conv_s4_generic()
151 acc_1 += (input[idx_0 + 1] + input_offset) * ker_val1; in depthwise_conv_s4_generic()
248 acc_0 += (input[idx_0] + input_offset) * ker_val0; in depthwise_conv_s4_generic()
335 acc_0 += (input[idx_0] + input_offset) * ker_val0; in depthwise_conv_s4_generic()
336 acc_1 += (input[idx_0] + input_offset) * ker_val1; in depthwise_conv_s4_generic()
454 acc_0 += (input[idx_0] + input_offset) * ker_val; in depthwise_conv_s4_generic()
530 dw_conv_params->input_offset, in arm_depthwise_conv_s4()
Darm_depthwise_conv_s8_opt.c91 const int32_t input_offset = dw_conv_params->input_offset; in arm_depthwise_conv_s8_opt() local
123 arm_memset_s8(lhs_buffer, (int8_t)-input_offset, (uint32_t)active_ch); in arm_depthwise_conv_s8_opt()
143 input_offset, in arm_depthwise_conv_s8_opt()
184 ip_0 = vaddq_n_s32(ip_0, input_offset); in arm_depthwise_conv_s8_opt()
256 (int16_t)input_offset); in arm_depthwise_conv_s8_opt()
Darm_transpose_conv_s8.c95 const int32_t input_offset = transpose_conv_params->input_offset; in arm_transpose_conv_s8() local
138 input_offset, in arm_transpose_conv_s8()
Darm_convolve_1x1_s4.c95 conv_params->input_offset, in arm_convolve_1x1_s4()
Darm_convolve_1x1_s8.c95 conv_params->input_offset, in arm_convolve_1x1_s8()
/cmsis-nn-latest/Include/
Darm_nn_types.h124 int32_t input_offset; /**< The negative of the zero value for the input tensor */ member
135 int32_t input_offset; /**< The negative of the zero value for the input tensor */ member
147 int32_t input_offset; /**< The negative of the zero value for the input tensor */ member
167 int32_t input_offset; /**< The negative of the zero value for the input tensor */ member
177 int32_t input_offset; /**< The negative of the zero value for the input tensor */ member
224 int32_t input_offset; member
/cmsis-nn-latest/Source/NNSupportFunctions/
Darm_nn_depthwise_conv_nt_t_padded_s8.c58 const int32_t input_offset, in arm_nn_depthwise_conv_nt_t_padded_s8() argument
99 ip_0 = vaddq_n_s32(ip_0, input_offset); in arm_nn_depthwise_conv_nt_t_padded_s8()
103 ip_1 = vaddq_n_s32(ip_1, input_offset); in arm_nn_depthwise_conv_nt_t_padded_s8()
107 ip_2 = vaddq_n_s32(ip_2, input_offset); in arm_nn_depthwise_conv_nt_t_padded_s8()
111 ip_3 = vaddq_n_s32(ip_3, input_offset); in arm_nn_depthwise_conv_nt_t_padded_s8()
159 (void)input_offset; in arm_nn_depthwise_conv_nt_t_padded_s8()
Darm_nn_depthwise_conv_nt_t_s8.c49 const int32_t input_offset, in arm_nn_depthwise_conv_nt_t_s8() argument
111 ker_sum = vmulq_n_s32(ker_sum, input_offset); in arm_nn_depthwise_conv_nt_t_s8()
152 (void)input_offset; in arm_nn_depthwise_conv_nt_t_s8()
Darm_nn_depthwise_conv_nt_t_s4.c51 const int32_t input_offset, in arm_nn_depthwise_conv_nt_t_s4() argument
169 ker_sum = vmulq_n_s32(ker_sum, input_offset); in arm_nn_depthwise_conv_nt_t_s4()
210 (void)input_offset; in arm_nn_depthwise_conv_nt_t_s4()
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_ds_cnn_l_s8/
Dtest_arm_ds_cnn_l_s8.c79 dw_conv_params.input_offset = DEPTHWISE_CONV_2D_2_INPUT_OFFSET; in ds_cnn_l_s8_get_buffer_size()
158 conv_params.input_offset = CONV_2D_1_INPUT_OFFSET; in ds_cnn_l_s8_inference()
202 dw_conv_params.input_offset = DEPTHWISE_CONV_2D_2_INPUT_OFFSET; in ds_cnn_l_s8_inference()
250 conv_params.input_offset = CONV_2D_3_INPUT_OFFSET; in ds_cnn_l_s8_inference()
276 dw_conv_params.input_offset = DEPTHWISE_CONV_2D_4_INPUT_OFFSET; in ds_cnn_l_s8_inference()
295 conv_params.input_offset = CONV_2D_5_INPUT_OFFSET; in ds_cnn_l_s8_inference()
315 dw_conv_params.input_offset = DEPTHWISE_CONV_2D_6_INPUT_OFFSET; in ds_cnn_l_s8_inference()
334 conv_params.input_offset = CONV_2D_7_INPUT_OFFSET; in ds_cnn_l_s8_inference()
353 dw_conv_params.input_offset = DEPTHWISE_CONV_2D_8_INPUT_OFFSET; in ds_cnn_l_s8_inference()
371 conv_params.input_offset = CONV_2D_9_INPUT_OFFSET; in ds_cnn_l_s8_inference()
[all …]
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_ds_cnn_s_s8/
Dtest_arm_ds_cnn_s_s8.c81 dw_conv_params.input_offset = DEPTHWISE_CONV_2D_2_INPUT_OFFSET; in ds_cnn_s_s8_get_buffer_size()
139 conv_params.input_offset = CONV_2D_1_INPUT_OFFSET; in ds_cnn_s_s8_inference()
190 dw_conv_params.input_offset = DEPTHWISE_CONV_2D_2_INPUT_OFFSET; in ds_cnn_s_s8_inference()
234 conv_params.input_offset = CONV_2D_3_INPUT_OFFSET; in ds_cnn_s_s8_inference()
254 dw_conv_params.input_offset = DEPTHWISE_CONV_2D_4_INPUT_OFFSET; in ds_cnn_s_s8_inference()
273 conv_params.input_offset = CONV_2D_5_INPUT_OFFSET; in ds_cnn_s_s8_inference()
293 dw_conv_params.input_offset = DEPTHWISE_CONV_2D_6_INPUT_OFFSET; in ds_cnn_s_s8_inference()
312 conv_params.input_offset = CONV_2D_7_INPUT_OFFSET; in ds_cnn_s_s8_inference()
331 dw_conv_params.input_offset = DEPTHWISE_CONV_2D_8_INPUT_OFFSET; in ds_cnn_s_s8_inference()
349 conv_params.input_offset = CONV_2D_9_INPUT_OFFSET; in ds_cnn_s_s8_inference()
[all …]
/cmsis-nn-latest/Source/FullyConnectedFunctions/
Darm_fully_connected_s4.c75 fc_params->input_offset, in arm_fully_connected_s4()
Darm_fully_connected_s8.c83 fc_params->input_offset, in arm_fully_connected_s8()
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_fully_connected_s4/
Dtest_arm_fully_connected_s4.c60 fc_params.input_offset = FULLY_CONNECTED_INT4_INPUT_OFFSET; in fully_connected_int4_arm_fully_connected_s4()
123 fc_params.input_offset = FULLY_CONNECTED_INT4_2_INPUT_OFFSET; in fully_connected_int4_arm_fully_connected_s4_2()
186 fc_params.input_offset = FULLY_CONNECTED_INT4_3_INPUT_OFFSET; in fully_connected_int4_arm_fully_connected_s4_3()
249 fc_params.input_offset = FULLY_CONNECTED_INT4_4_INPUT_OFFSET; in fully_connected_int4_arm_fully_connected_s4_4()
312 fc_params.input_offset = FULLY_CONNECTED_INT4_5_INPUT_OFFSET; in fully_connected_int4_arm_fully_connected_s4_5()
375 fc_params.input_offset = FULLY_CONNECTED_INT4_6_INPUT_OFFSET; in fully_connected_int4_arm_fully_connected_s4_6()
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_convolve_1x1_s8_fast/
Dtest_arm_convolve_1x1_s8_fast.c69 conv_params.input_offset = KERNEL1X1_INPUT_OFFSET; in kernel1x1_arm_convolve_1x1_s8_fast()
143 conv_params.input_offset = KERNEL1X1_STRIDE_X_INPUT_OFFSET; in kernel1x1_stride_x_arm_convolve_1x1_s8()
231 conv_params.input_offset = KERNEL1X1_STRIDE_X_Y_INPUT_OFFSET; in kernel1x1_stride_x_y_arm_convolve_1x1_s8()
322 conv_params.input_offset = KERNEL1X1_STRIDE_X_Y_1_INPUT_OFFSET; in kernel1x1_stride_x_y_1_arm_convolve_1x1_s8()
389 conv_params.input_offset = KERNEL1X1_STRIDE_X_Y_2_INPUT_OFFSET; in kernel1x1_stride_x_y_2_arm_convolve_1x1_s8()
439 conv_params.input_offset = KERNEL1X1_STRIDE_X_Y_2_INPUT_OFFSET; in buffer_size_arm_convolve_1x1_s8_fast()
476 conv_params.input_offset = KERNEL1X1_STRIDE_X_Y_2_INPUT_OFFSET; in buffer_size_mve_arm_convolve_1x1_s8_fast()
515 conv_params.input_offset = KERNEL1X1_STRIDE_X_Y_2_INPUT_OFFSET; in buffer_size_dsp_arm_convolve_1x1_s8_fast()
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_convolve_1x1_s4_fast/
Dtest_arm_convolve_1x1_s4_fast.c73 conv_params.input_offset = KERNEL1X1_INT4_INPUT_OFFSET; in kernel1x1_arm_convolve_1x1_s4_fast()
147 conv_params.input_offset = KERNEL1X1_INT4_2_INPUT_OFFSET; in kernel1x1_2_arm_convolve_1x1_s4_fast()
220 conv_params.input_offset = KERNEL1X1_INT4_3_INPUT_OFFSET; in kernel1x1_3_arm_convolve_1x1_s4_fast()
296 conv_params.input_offset = KERNEL1X1_STRIDE_X_INT4_INPUT_OFFSET; in kernel1x1_stride_x_arm_convolve_1x1_s4()
386 conv_params.input_offset = KERNEL1X1_STRIDE_X_Y_INT4_INPUT_OFFSET; in kernel1x1_stride_x_y_arm_convolve_1x1_s4()
479 conv_params.input_offset = KERNEL1X1_STRIDE_X_Y_1_INT4_INPUT_OFFSET; in kernel1x1_stride_x_y_1_arm_convolve_1x1_s4()
548 conv_params.input_offset = KERNEL1X1_STRIDE_X_Y_2_INT4_INPUT_OFFSET; in kernel1x1_stride_x_y_2_arm_convolve_1x1_s4()
598 conv_params.input_offset = KERNEL1X1_STRIDE_X_Y_2_INT4_INPUT_OFFSET; in buffer_size_arm_convolve_1x1_s4_fast()
635 conv_params.input_offset = KERNEL1X1_STRIDE_X_Y_2_INT4_INPUT_OFFSET; in buffer_size_mve_arm_convolve_1x1_s4_fast()
674 conv_params.input_offset = KERNEL1X1_STRIDE_X_Y_2_INT4_INPUT_OFFSET; in buffer_size_dsp_arm_convolve_1x1_s4_fast()
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_fully_connected_s16/
Dtest_arm_fully_connected_s16.c58 fc_params.input_offset = 0; in fully_connected_int16_arm_fully_connected_s16()
123 fc_params.input_offset = 0; in fully_connected_int16_big_arm_fully_connected_s16()
187 fc_params.input_offset = 0; in fc_int16_slow_arm_fully_connected_s16()
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_fully_connected_s8/
Dtest_arm_fully_connected_s8.c59 fc_params.input_offset = FULLY_CONNECTED_INPUT_OFFSET; in fully_connected_arm_fully_connected_s8()
127 fc_params.input_offset = FULLY_CONNECTED_W_ZP_INPUT_OFFSET; in fully_connected_w_zp_arm_fully_connected_s8()
191 fc_params.input_offset = FULLY_CONNECTED_MVE_0_INPUT_OFFSET; in fully_connected_mve_0_arm_fully_connected_s8()
253 fc_params.input_offset = FULLY_CONNECTED_MVE_1_INPUT_OFFSET; in fully_connected_mve_1_arm_fully_connected_s8()
315 fc_params.input_offset = FULLY_CONNECTED_NULL_BIAS_0_INPUT_OFFSET; in fully_connected_null_bias_0_arm_fully_connected_s8()
388 fc_params.input_offset = FULLY_CONNECTED_OUT_ACTIVATION_INPUT_OFFSET; in fully_connected_out_activation_arm_fully_connected_s8()

12