Home
last modified time | relevance | path

Searched refs:bias (Results 1 – 25 of 28) sorted by relevance

12

/cmsis-nn-3.6.0-3.5.0/Tests/UnitTest/TestCases/Utils/
Dutils.h22 static inline const int32_t *get_bias_address(const int32_t *bias, int32_t size) in get_bias_address() argument
27 if (bias[i] != 0) in get_bias_address()
29 return_bias = bias; in get_bias_address()
36 static inline const int64_t *get_bias_s64_address(const int64_t *bias, int32_t size) in get_bias_s64_address() argument
41 if (bias[i] != 0) in get_bias_s64_address()
43 return_bias = bias; in get_bias_s64_address()
/cmsis-nn-3.6.0-3.5.0/Source/ConvolutionFunctions/
Darm_depthwise_conv_wrapper_s16.c58 const int64_t *bias, in arm_depthwise_conv_wrapper_s16() argument
74 bias, in arm_depthwise_conv_wrapper_s16()
88 bias, in arm_depthwise_conv_wrapper_s16()
Darm_depthwise_conv_wrapper_s8.c57 const int32_t *bias, in arm_depthwise_conv_wrapper_s8() argument
77 bias, in arm_depthwise_conv_wrapper_s8()
92 bias, in arm_depthwise_conv_wrapper_s8()
107 bias, in arm_depthwise_conv_wrapper_s8()
Darm_depthwise_conv_s8.c60 const int32_t *bias, in depthwise_conv_s8_mult_4() argument
71 const int32_t *bias_base = bias; in depthwise_conv_s8_mult_4()
80 bias = bias_base; in depthwise_conv_s8_mult_4()
89 if (bias) in depthwise_conv_s8_mult_4()
91 out_buff[0] = *bias++; in depthwise_conv_s8_mult_4()
92 out_buff[1] = *bias++; in depthwise_conv_s8_mult_4()
93 out_buff[2] = *bias++; in depthwise_conv_s8_mult_4()
94 out_buff[3] = *bias++; in depthwise_conv_s8_mult_4()
168 const int32_t *bias, in depthwise_conv_s8_generic() argument
232 if (bias) in depthwise_conv_s8_generic()
[all …]
Darm_nn_mat_mult_kernel_s8_s16.c55 const int32_t *bias = output_bias; in arm_nn_mat_mult_kernel_s8_s16() local
74 if (bias) in arm_nn_mat_mult_kernel_s8_s16()
76 ch_0_out_0 = *bias; in arm_nn_mat_mult_kernel_s8_s16()
77 ch_0_out_1 = *bias++; in arm_nn_mat_mult_kernel_s8_s16()
78 ch_1_out_0 = *bias; in arm_nn_mat_mult_kernel_s8_s16()
79 ch_1_out_1 = *bias++; in arm_nn_mat_mult_kernel_s8_s16()
171 if (bias) in arm_nn_mat_mult_kernel_s8_s16()
173 ch_0_out_0 = *bias; in arm_nn_mat_mult_kernel_s8_s16()
174 ch_0_out_1 = *bias++; in arm_nn_mat_mult_kernel_s8_s16()
Darm_depthwise_conv_fast_s16.c59 const int64_t *bias, in arm_depthwise_conv_fast_s16() argument
144 bias, in arm_depthwise_conv_fast_s16()
183 if (bias) in arm_depthwise_conv_fast_s16()
185 in_requantize_0 += bias[offset]; in arm_depthwise_conv_fast_s16()
186 in_requantize_1 += bias[offset + 1]; in arm_depthwise_conv_fast_s16()
187 in_requantize_2 += bias[offset + 2]; in arm_depthwise_conv_fast_s16()
188 in_requantize_3 += bias[offset + 3]; in arm_depthwise_conv_fast_s16()
222 const int64_t *const bias_start_pos = bias; in arm_depthwise_conv_fast_s16()
281 bias = bias_start_pos; in arm_depthwise_conv_fast_s16()
364 if (bias) in arm_depthwise_conv_fast_s16()
[all …]
Darm_depthwise_conv_s16.c56 const int64_t *bias, in depthwise_conv_s16_mult_4_s16() argument
81 if (bias) in depthwise_conv_s16_mult_4_s16()
83 out_buff[0] = bias[out_ch + 0 + mult_tile]; in depthwise_conv_s16_mult_4_s16()
84 out_buff[1] = bias[out_ch + 1 + mult_tile]; in depthwise_conv_s16_mult_4_s16()
85 out_buff[2] = bias[out_ch + 2 + mult_tile]; in depthwise_conv_s16_mult_4_s16()
86 out_buff[3] = bias[out_ch + 3 + mult_tile]; in depthwise_conv_s16_mult_4_s16()
146 const int64_t *bias, in depthwise_conv_s16_generic_s16() argument
206 if (bias) in depthwise_conv_s16_generic_s16()
208 acc_0 = bias[idx_out_ch]; in depthwise_conv_s16_generic_s16()
252 const int64_t *bias, in arm_depthwise_conv_s16() argument
[all …]
Darm_nn_mat_mult_s8.c51 const int32_t *const bias, in arm_nn_mat_mult_s8() argument
105 if (bias) in arm_nn_mat_mult_s8()
107 res = vaddq_n_s32(res, bias[i_out_ch]); in arm_nn_mat_mult_s8()
148 if (bias) in arm_nn_mat_mult_s8()
150 acc_0 += bias[i_out_ch]; in arm_nn_mat_mult_s8()
176 (void)bias; in arm_nn_mat_mult_s8()
Darm_depthwise_conv_s8_opt.c59 const int32_t *bias, in arm_depthwise_conv_s8_opt() argument
152 bias + block_offset, in arm_depthwise_conv_s8_opt()
175 if (bias) in arm_depthwise_conv_s8_opt()
177 out_0 = vldrwq_s32(&bias[offset]); in arm_depthwise_conv_s8_opt()
214 const int32_t *const bias_start_pos = bias; in arm_depthwise_conv_s8_opt()
270 bias = bias_start_pos; in arm_depthwise_conv_s8_opt()
280 if (bias) in arm_depthwise_conv_s8_opt()
282 sum = *bias++; in arm_depthwise_conv_s8_opt()
283 sum_2 = *bias++; in arm_depthwise_conv_s8_opt()
284 sum_3 = *bias++; in arm_depthwise_conv_s8_opt()
[all …]
Darm_depthwise_conv_3x3_s8.c60 const int32_t *bias, in arm_depthwise_conv_3x3_s8() argument
94 const int32_t *bias_base = bias; in arm_depthwise_conv_3x3_s8()
102 bias = bias_base; in arm_depthwise_conv_3x3_s8()
109 if (bias) in arm_depthwise_conv_3x3_s8()
111 out_buff0 = *bias++; in arm_depthwise_conv_3x3_s8()
112 out_buff1 = *bias++; in arm_depthwise_conv_3x3_s8()
113 out_buff2 = *bias++; in arm_depthwise_conv_3x3_s8()
114 out_buff3 = *bias++; in arm_depthwise_conv_3x3_s8()
242 if (bias) in arm_depthwise_conv_3x3_s8()
244 out_buff = *bias++; in arm_depthwise_conv_3x3_s8()
Darm_nn_depthwise_conv_s8_core.c55 const int32_t *bias = output_bias; in arm_nn_depthwise_conv_s8_core() local
65 int32x4_t out_0 = vldrwq_s32(bias); in arm_nn_depthwise_conv_s8_core()
67 bias += 4; in arm_nn_depthwise_conv_s8_core()
169 int32_t sum_0 = bias[i]; in arm_nn_depthwise_conv_s8_core()
170 int32_t sum_1 = bias[i]; in arm_nn_depthwise_conv_s8_core()
/cmsis-nn-3.6.0-3.5.0/Source/NNSupportFunctions/
Darm_nn_mat_mul_core_1x_s8.c54 const int32_t *bias, in arm_nn_mat_mul_core_1x_s8() argument
105 if (bias) in arm_nn_mat_mul_core_1x_s8()
107 res = vaddq_s32(res, vldrwq_s32(bias)); in arm_nn_mat_mul_core_1x_s8()
108 bias += 4; in arm_nn_mat_mul_core_1x_s8()
125 if (bias) in arm_nn_mat_mul_core_1x_s8()
127 acc_n0 += bias[i]; in arm_nn_mat_mul_core_1x_s8()
145 (void)bias; in arm_nn_mat_mul_core_1x_s8()
Darm_nn_vec_mat_mult_t_s8.c60 const int32_t *bias, in arm_nn_vec_mat_mult_t_s8() argument
92 if (bias) in arm_nn_vec_mat_mult_t_s8()
94 acc_0 = *bias++; in arm_nn_vec_mat_mult_t_s8()
95 acc_1 = *bias++; in arm_nn_vec_mat_mult_t_s8()
96 acc_2 = *bias++; in arm_nn_vec_mat_mult_t_s8()
173 if (bias) in arm_nn_vec_mat_mult_t_s8()
175 acc_0 += *bias; in arm_nn_vec_mat_mult_t_s8()
176 bias++; in arm_nn_vec_mat_mult_t_s8()
198 if (bias) in arm_nn_vec_mat_mult_t_s8()
200 acc_0 = *bias++; in arm_nn_vec_mat_mult_t_s8()
[all …]
Darm_nn_vec_mat_mult_t_s16.c52 const int64_t *bias, in arm_nn_vec_mat_mult_t_s16() argument
132 if (bias) in arm_nn_vec_mat_mult_t_s16()
134 result_64_0 += *bias++; in arm_nn_vec_mat_mult_t_s16()
135 result_64_1 += *bias++; in arm_nn_vec_mat_mult_t_s16()
136 result_64_2 += *bias++; in arm_nn_vec_mat_mult_t_s16()
137 result_64_3 += *bias++; in arm_nn_vec_mat_mult_t_s16()
194 if (bias) in arm_nn_vec_mat_mult_t_s16()
196 result_64 += *bias++; in arm_nn_vec_mat_mult_t_s16()
268 if (bias) in arm_nn_vec_mat_mult_t_s16()
270 acc_64_0 += *bias++; in arm_nn_vec_mat_mult_t_s16()
[all …]
Darm_nn_depthwise_conv_nt_t_s16.c60 const int64_t *bias = output_bias; in arm_nn_depthwise_conv_nt_t_s16() local
111 if (bias) in arm_nn_depthwise_conv_nt_t_s16()
113 in_requantize_0 += *bias; in arm_nn_depthwise_conv_nt_t_s16()
114 in_requantize_1 += *bias; in arm_nn_depthwise_conv_nt_t_s16()
115 in_requantize_2 += *bias; in arm_nn_depthwise_conv_nt_t_s16()
116 in_requantize_3 += *bias; in arm_nn_depthwise_conv_nt_t_s16()
117 bias++; in arm_nn_depthwise_conv_nt_t_s16()
Darm_nn_mat_mul_kernel_s16.c65 const int64_t *bias = output_bias; in arm_nn_mat_mult_kernel_s16() local
125 if (bias) in arm_nn_mat_mult_kernel_s16()
128 int64_t acc_64 = ch_0_out_0 + *bias; in arm_nn_mat_mult_kernel_s16()
130 acc_64 = ch_0_out_1 + *bias++; in arm_nn_mat_mult_kernel_s16()
149 if (bias) in arm_nn_mat_mult_kernel_s16()
152 int64_t acc_64 = ch_1_out_0 + *bias; in arm_nn_mat_mult_kernel_s16()
154 acc_64 = ch_1_out_1 + *bias++; in arm_nn_mat_mult_kernel_s16()
218 if (bias) in arm_nn_mat_mult_kernel_s16()
221 int64_t acc_64 = ch_0_out_0 + *bias; in arm_nn_mat_mult_kernel_s16()
223 acc_64 = ch_0_out_1 + *bias++; in arm_nn_mat_mult_kernel_s16()
Darm_nn_mat_mul_core_4x_s8.c54 const int32_t *bias, in arm_nn_mat_mul_core_4x_s8() argument
116 if (bias) in arm_nn_mat_mul_core_4x_s8()
118 sum_tmp += bias[i]; in arm_nn_mat_mul_core_4x_s8()
142 (void)bias; in arm_nn_mat_mul_core_4x_s8()
Darm_nn_vec_mat_mul_result_acc_s8.c47 const int32_t *bias, in arm_nn_vec_mat_mul_result_acc_s8() argument
107 int32x4_t b = vldrwq_s32(bias); in arm_nn_vec_mat_mul_result_acc_s8()
109 bias += 4; in arm_nn_vec_mat_mul_result_acc_s8()
145 acc_0 += *bias; in arm_nn_vec_mat_mul_result_acc_s8()
146 bias++; in arm_nn_vec_mat_mul_result_acc_s8()
161 int32_t acc_0 = *bias++; in arm_nn_vec_mat_mul_result_acc_s8()
162 int32_t acc_1 = *bias++; in arm_nn_vec_mat_mul_result_acc_s8()
219 int32_t acc_0 = *bias++; in arm_nn_vec_mat_mul_result_acc_s8()
266 int32_t res00 = *bias++; in arm_nn_vec_mat_mul_result_acc_s8()
267 int32_t res01 = *bias++; in arm_nn_vec_mat_mul_result_acc_s8()
[all …]
Darm_nn_depthwise_conv_nt_t_padded_s8.c72 const int32_t *bias = output_bias; in arm_nn_depthwise_conv_nt_t_padded_s8() local
79 if (bias) in arm_nn_depthwise_conv_nt_t_padded_s8()
81 out_0 = vldrwq_s32(bias); in arm_nn_depthwise_conv_nt_t_padded_s8()
82 bias += 4; in arm_nn_depthwise_conv_nt_t_padded_s8()
Darm_nn_depthwise_conv_nt_t_s8.c62 const int32_t *bias = output_bias; in arm_nn_depthwise_conv_nt_t_s8() local
70 if (bias) in arm_nn_depthwise_conv_nt_t_s8()
72 out_0 = vldrwq_s32(bias); in arm_nn_depthwise_conv_nt_t_s8()
73 bias += 4; in arm_nn_depthwise_conv_nt_t_s8()
Darm_nn_mat_mult_nt_t_s8.c50 const int32_t *bias, in arm_nn_mat_mult_nt_t_s8() argument
131 if (bias) in arm_nn_mat_mult_nt_t_s8()
133 sum_tmp += bias[i]; in arm_nn_mat_mult_nt_t_s8()
189 if (bias) in arm_nn_mat_mult_nt_t_s8()
191 sum_tmp += bias[i]; in arm_nn_mat_mult_nt_t_s8()
242 if (bias) in arm_nn_mat_mult_nt_t_s8()
244 lhs_offset_contribution0 += bias[rhs_rows_idx]; in arm_nn_mat_mult_nt_t_s8()
245 lhs_offset_contribution1 += bias[rhs_rows_idx + 1]; in arm_nn_mat_mult_nt_t_s8()
588 if (bias) in arm_nn_mat_mult_nt_t_s8()
590 res00 = bias[rhs_rows - 1]; in arm_nn_mat_mult_nt_t_s8()
[all …]
/cmsis-nn-3.6.0-3.5.0/Source/FullyConnectedFunctions/
Darm_fully_connected_s16.c57 const int64_t *bias, in arm_fully_connected_s16() argument
73 bias, in arm_fully_connected_s16()
Darm_fully_connected_s8.c58 const int32_t *bias, in arm_fully_connected_s8() argument
72 bias, in arm_fully_connected_s8()
/cmsis-nn-3.6.0-3.5.0/Include/
Darm_nnsupportfunctions.h230 const int32_t *const bias,
298 const int32_t *bias,
325 const int32_t *bias,
360 const int32_t *bias,
397 const int32_t *bias,
428 const int64_t *bias,
1289 const int32_t *bias,
/cmsis-nn-3.6.0-3.5.0/Tests/UnitTest/TestCases/test_arm_svdf_state_s16_s8/
Dtest_arm_svdf_state_s16_s8.c30 static bool check_null_bias(const int32_t *bias, int32_t size) in check_null_bias() argument
35 if (bias[i] != 0) in check_null_bias()

12