/cmsis-nn-latest/Source/ActivationFunctions/ |
D | arm_nn_activation_s16.c | 79 const int32_t input_data = ((*input) * input_multiplier + rounding) >> abs_left_shift; in arm_nn_activation_s16() local 80 const uint32_t abs_input_data = input_data > 0 ? input_data : -input_data; in arm_nn_activation_s16() 105 result = (input_data >= 0) ? (result + (1 << 9)) : ((1 << 25) - result + (1 << 9) - 1); in arm_nn_activation_s16() 110 …result = (input_data >= 0) ? (result - (1 << 23)) + (1 << 7) : ((-result + (1 << 23)) + (1 << 7) -… in arm_nn_activation_s16()
|
/cmsis-nn-latest/Source/ConvolutionFunctions/ |
D | arm_convolve_wrapper_s4.c | 54 const int8_t *input_data, in arm_convolve_wrapper_s4() argument 71 input_data, in arm_convolve_wrapper_s4() 85 input_data, in arm_convolve_wrapper_s4() 101 input_data, in arm_convolve_wrapper_s4() 115 input_data, in arm_convolve_wrapper_s4()
|
D | arm_convolve_wrapper_s8.c | 54 const int8_t *input_data, in arm_convolve_wrapper_s8() argument 72 input_data, in arm_convolve_wrapper_s8() 86 input_data, in arm_convolve_wrapper_s8() 102 input_data, in arm_convolve_wrapper_s8() 116 input_data, in arm_convolve_wrapper_s8()
|
D | arm_convolve_1x1_s4.c | 54 const int8_t *input_data, in arm_convolve_1x1_s4() argument 78 const int8_t *input_data_ref = input_data; in arm_convolve_1x1_s4() 82 input_data = input_data_ref + (i_batch * rhs_cols * input_dims->w * input_dims->h); in arm_convolve_1x1_s4() 86 arm_cmsis_nn_status result = arm_nn_mat_mult_nt_t_s4(input_data, in arm_convolve_1x1_s4() 104 input_data += input_inc; in arm_convolve_1x1_s4()
|
D | arm_convolve_1x1_s8.c | 54 const int8_t *input_data, in arm_convolve_1x1_s8() argument 78 const int8_t *input_data_ref = input_data; in arm_convolve_1x1_s8() 82 input_data = input_data_ref + (i_batch * rhs_cols * input_dims->w * input_dims->h); in arm_convolve_1x1_s8() 86 arm_cmsis_nn_status result = arm_nn_mat_mult_nt_t_s8(input_data, in arm_convolve_1x1_s8() 105 input_data += input_inc; in arm_convolve_1x1_s8()
|
D | arm_convolve_wrapper_s16.c | 54 const int16_t *input_data, in arm_convolve_wrapper_s16() argument 66 input_data, in arm_convolve_wrapper_s16()
|
D | arm_convolve_1_x_n_s8.c | 52 const int8_t *input_data, in arm_convolve_1_x_n_s8() argument 105 input_data, in arm_convolve_1_x_n_s8() 125 arm_memcpy_s8(im2col, input_data, sizeof(int8_t) * num_elem_left); in arm_convolve_1_x_n_s8() 157 arm_nn_mat_mult_nt_t_s8(input_data + input_start, in arm_convolve_1_x_n_s8() 187 arm_memcpy_s8(im2col, input_data + input_start, sizeof(int8_t) * num_elem_right); in arm_convolve_1_x_n_s8() 210 input_data += (input_x * input_ch); in arm_convolve_1_x_n_s8() 217 input_data, in arm_convolve_1_x_n_s8()
|
D | arm_convolve_1_x_n_s4.c | 53 const int8_t *input_data, in arm_convolve_1_x_n_s4() argument 116 input_data, in arm_convolve_1_x_n_s4() 136 arm_nn_mat_mult_nt_t_s4(input_data + input_start, in arm_convolve_1_x_n_s4() 167 input_data + est_input_x_idx * input_ch, in arm_convolve_1_x_n_s4() 177 input_data += (input_x * input_ch); in arm_convolve_1_x_n_s4() 184 input_data, in arm_convolve_1_x_n_s4()
|
D | arm_convolve_1x1_s4_fast.c | 54 const int8_t *input_data, in arm_convolve_1x1_s4_fast() argument 76 arm_nn_mat_mult_nt_t_s4(input_data, in arm_convolve_1x1_s4_fast()
|
D | arm_convolve_1x1_s8_fast.c | 54 const int8_t *input_data, in arm_convolve_1x1_s8_fast() argument 76 arm_nn_mat_mult_nt_t_s8(input_data, in arm_convolve_1x1_s8_fast()
|
/cmsis-nn-latest/Tests/UnitTest/ |
D | softmax_settings.py | 106 def get_softmax_randomized_input_data(self, input_data, input_shape): argument 108 if input_data is not None: 109 input_data = tf.reshape(input_data, input_shape) 111 input_data = self.get_randomized_data(input_shape, 114 return input_data 116 def generate_data(self, input_data=None, weights=None, biases=None) -> None: argument 117 … input_data = self.get_softmax_randomized_input_data(input_data, [self.y_input, self.x_input]) 126 self.generate_c_array(self.input_data_file_prefix, input_data, datatype=datatype) 145 interpreter.set_tensor(input_layer["index"], tf.cast(input_data, tf.int8)) 154 … interpreter = self.convert_and_interpret(model, inttype, tf.expand_dims(input_data, axis=0))
|
D | pooling_settings.py | 74 def generate_data(self, input_data=None) -> None: argument 82 input_data = self.get_randomized_input_data(input_data) 83 self.generate_c_array(self.input_data_file_prefix, input_data, datatype=datatype) 85 input_data = tf.cast(input_data, tf.float32) 106 interpreter = self.convert_and_interpret(model, inttype, input_data)
|
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_softmax_s8/ |
D | test_arm_softmax_s8.c | 34 const int8_t *input_data = softmax_input; in softmax_arm_softmax_s8() local 39 arm_softmax_s8(input_data, num_rows, row_size, mult, shift, diff_min, output); in softmax_arm_softmax_s8() 51 const int8_t *input_data = softmax_input; in softmax_invalid_diff_min_arm_softmax_s8() local 62 arm_softmax_s8(input_data, num_rows, row_size, mult, shift, diff_min, output); in softmax_invalid_diff_min_arm_softmax_s8()
|
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_softmax_s8_s16/ |
D | test_arm_softmax_s8_s16.c | 34 const int8_t *input_data = softmax_s8_s16_input; in softmax_s8_s16_arm_softmax_s8_s16() local 39 arm_softmax_s8_s16(input_data, num_rows, row_size, mult, shift, diff_min, output); in softmax_s8_s16_arm_softmax_s8_s16() 51 const int8_t *input_data = softmax_s8_s16_input; in softmax_s8_s16_invalid_diff_min_arm_softmax_s8_s16() local 62 arm_softmax_s8_s16(input_data, num_rows, row_size, mult, shift, diff_min, output); in softmax_s8_s16_invalid_diff_min_arm_softmax_s8_s16()
|
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_softmax_s16/ |
D | test_arm_softmax_s16.c | 35 const int16_t *input_data = softmax_s16_input; in softmax_s16_arm_softmax_s16() local 42 arm_softmax_s16(input_data, num_rows, row_size, mult, shift, &softmax_params, output); in softmax_s16_arm_softmax_s16()
|
/cmsis-nn-latest/Include/ |
D | arm_nnfunctions.h | 96 const int8_t *input_data, 181 const int8_t *input_data, 266 const int16_t *input_data, 350 const int8_t *input_data, 392 const int8_t *input_data, 462 const int8_t *input_data, 542 const int16_t *input_data, 596 const int8_t *input_data, 636 const int8_t *input_data, 679 const int8_t *input_data, [all …]
|
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_max_pool_s8/ |
D | test_arm_max_pool_s8.c | 45 const int8_t *input_data = maxpooling_input; in maxpooling_arm_max_pool_s8() local 68 … arm_max_pool_s8(&ctx, &pool_params, &input_dims, input_data, &filter_dims, &output_dims, output); in maxpooling_arm_max_pool_s8() 86 const int8_t *input_data = maxpooling_1_input; in maxpooling_1_arm_max_pool_s8() local 109 … arm_max_pool_s8(&ctx, &pool_params, &input_dims, input_data, &filter_dims, &output_dims, output); in maxpooling_1_arm_max_pool_s8() 127 const int8_t *input_data = maxpooling_2_input; in maxpooling_2_arm_max_pool_s8() local 150 … arm_max_pool_s8(&ctx, &pool_params, &input_dims, input_data, &filter_dims, &output_dims, output); in maxpooling_2_arm_max_pool_s8() 168 const int8_t *input_data = maxpooling_3_input; in maxpooling_3_arm_max_pool_s8() local 191 … arm_max_pool_s8(&ctx, &pool_params, &input_dims, input_data, &filter_dims, &output_dims, output); in maxpooling_3_arm_max_pool_s8() 209 const int8_t *input_data = maxpooling_4_input; in maxpooling_4_arm_max_pool_s8() local 232 … arm_max_pool_s8(&ctx, &pool_params, &input_dims, input_data, &filter_dims, &output_dims, output); in maxpooling_4_arm_max_pool_s8() [all …]
|
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_max_pool_s16/ |
D | test_arm_max_pool_s16.c | 40 const int16_t *input_data = maxpool_int16_input; in maxpool_int16_arm_max_pool_s16() local 63 … arm_max_pool_s16(&ctx, &pool_params, &input_dims, input_data, &filter_dims, &output_dims, output); in maxpool_int16_arm_max_pool_s16() 81 const int16_t *input_data = maxpool_int16_1_input; in maxpool_int16_1_arm_max_pool_s16() local 104 … arm_max_pool_s16(&ctx, &pool_params, &input_dims, input_data, &filter_dims, &output_dims, output); in maxpool_int16_1_arm_max_pool_s16() 122 const int16_t *input_data = maxpool_int16_2_input; in maxpool_int16_2_arm_max_pool_s16() local 145 … arm_max_pool_s16(&ctx, &pool_params, &input_dims, input_data, &filter_dims, &output_dims, output); in maxpool_int16_2_arm_max_pool_s16() 163 const int16_t *input_data = maxpool_int16_2_input; in maxpool_int16_param_fail_arm_max_pool_s16() local 184 … arm_max_pool_s16(&ctx, &pool_params, &input_dims, input_data, &filter_dims, &output_dims, output); in maxpool_int16_param_fail_arm_max_pool_s16()
|
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_svdf_state_s16_s8/ |
D | test_arm_svdf_state_s16_s8.c | 91 int8_t *input_data = malloc(input_round_size); in svdf_arm_svdf_state_s16_s8() local 101 memcpy(input_data, svdf_input_sequence + j * input_round_size, input_round_size); in svdf_arm_svdf_state_s16_s8() 108 input_data, in svdf_arm_svdf_state_s16_s8() 125 free(input_data); in svdf_arm_svdf_state_s16_s8() 177 int8_t *input_data = malloc(input_round_size); in svdf_1_arm_svdf_state_s16_s8() local 186 memcpy(input_data, svdf_1_input_sequence + j * input_round_size, input_round_size); in svdf_1_arm_svdf_state_s16_s8() 193 input_data, in svdf_1_arm_svdf_state_s16_s8() 210 free(input_data); in svdf_1_arm_svdf_state_s16_s8() 262 int8_t *input_data = malloc(input_round_size); in svdf_2_arm_svdf_state_s16_s8() local 271 memcpy(input_data, svdf_2_input_sequence + j * input_round_size, input_round_size); in svdf_2_arm_svdf_state_s16_s8() [all …]
|
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_avgpool_s8/ |
D | test_arm_avgpool_s8.c | 41 const int8_t *input_data = avgpooling_input; in avgpooling_arm_avgpool_s8() local 65 … arm_avgpool_s8(&ctx, &pool_params, &input_dims, input_data, &filter_dims, &output_dims, output); in avgpooling_arm_avgpool_s8() 88 const int8_t *input_data = avgpooling_1_input; in avgpooling_1_arm_avgpool_s8() local 112 … arm_avgpool_s8(&ctx, &pool_params, &input_dims, input_data, &filter_dims, &output_dims, output); in avgpooling_1_arm_avgpool_s8() 134 const int8_t *input_data = avgpooling_2_input; in avgpooling_2_arm_avgpool_s8() local 158 … arm_avgpool_s8(&ctx, &pool_params, &input_dims, input_data, &filter_dims, &output_dims, output); in avgpooling_2_arm_avgpool_s8() 180 const int8_t *input_data = avgpooling_3_input; in avgpooling_3_arm_avgpool_s8() local 204 … arm_avgpool_s8(&ctx, &pool_params, &input_dims, input_data, &filter_dims, &output_dims, output); in avgpooling_3_arm_avgpool_s8() 226 const int8_t *input_data = avgpooling_4_input; in avgpooling_4_arm_avgpool_s8() local 250 … arm_avgpool_s8(&ctx, &pool_params, &input_dims, input_data, &filter_dims, &output_dims, output); in avgpooling_4_arm_avgpool_s8() [all …]
|
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_avgpool_s16/ |
D | test_arm_avgpool_s16.c | 39 const int16_t *input_data = avgpooling_int16_input; in avgpooling_int16_arm_avgpool_s16() local 63 … arm_avgpool_s16(&ctx, &pool_params, &input_dims, input_data, &filter_dims, &output_dims, output); in avgpooling_int16_arm_avgpool_s16() 86 const int16_t *input_data = avgpooling_int16_1_input; in avgpooling_int16_1_arm_avgpool_s16() local 110 … arm_avgpool_s16(&ctx, &pool_params, &input_dims, input_data, &filter_dims, &output_dims, output); in avgpooling_int16_1_arm_avgpool_s16() 132 const int16_t *input_data = avgpooling_int16_2_input; in avgpooling_int16_2_arm_avgpool_s16() local 156 … arm_avgpool_s16(&ctx, &pool_params, &input_dims, input_data, &filter_dims, &output_dims, output); in avgpooling_int16_2_arm_avgpool_s16() 178 const int16_t *input_data = avgpooling_int16_3_input; in avgpooling_int16_3_arm_avgpool_s16() local 202 … arm_avgpool_s16(&ctx, &pool_params, &input_dims, input_data, &filter_dims, &output_dims, output); in avgpooling_int16_3_arm_avgpool_s16() 246 const int16_t *input_data = avgpooling_int16_3_input; in avgpooling_int16_param_fail_arm_avgpool_s16() local 270 … arm_avgpool_s16(&ctx, &pool_params, &input_dims, input_data, &filter_dims, &output_dims, output); in avgpooling_int16_param_fail_arm_avgpool_s16()
|
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_svdf_s8/ |
D | test_arm_svdf_s8.c | 89 int8_t *input_data = malloc(input_round_size); in svdf_int8_arm_svdf_s8() local 99 memcpy(input_data, svdf_int8_input_sequence + j * input_round_size, input_round_size); in svdf_int8_arm_svdf_s8() 107 input_data, in svdf_int8_arm_svdf_s8() 138 free(input_data); in svdf_int8_arm_svdf_s8() 202 int8_t *input_data = malloc(input_round_size); in svdf_int8_2_arm_svdf_s8() local 210 memcpy(input_data, svdf_int8_2_input_sequence + j * input_round_size, input_round_size); in svdf_int8_2_arm_svdf_s8() 218 input_data, in svdf_int8_2_arm_svdf_s8() 243 free(input_data); in svdf_int8_2_arm_svdf_s8()
|
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_depthwise_conv_s4_opt/ |
D | test_arm_depthwise_conv_s4_opt.c | 45 const int8_t *input_data = depthwise_int4_1_input; in depthwise_int4_1_arm_depthwise_conv_s4_opt() local 83 input_data, in depthwise_int4_1_arm_depthwise_conv_s4_opt() 105 input_data, in depthwise_int4_1_arm_depthwise_conv_s4_opt() 128 input_data, in depthwise_int4_1_arm_depthwise_conv_s4_opt() 162 const int8_t *input_data = depthwise_int4_2_input; in depthwise_int4_2_arm_depthwise_conv_s4_opt() local 200 input_data, in depthwise_int4_2_arm_depthwise_conv_s4_opt() 221 input_data, in depthwise_int4_2_arm_depthwise_conv_s4_opt() 244 input_data, in depthwise_int4_2_arm_depthwise_conv_s4_opt() 278 const int8_t *input_data = depthwise_int4_3_input; in depthwise_int4_3_arm_depthwise_conv_s4_opt() local 316 input_data, in depthwise_int4_3_arm_depthwise_conv_s4_opt() [all …]
|
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_depthwise_conv_s4/ |
D | test_arm_depthwise_conv_s4.c | 47 const int8_t *input_data = depthwise_int4_generic_input; in depthwise_int4_generic_arm_depthwise_conv_s4() local 84 input_data, in depthwise_int4_generic_arm_depthwise_conv_s4() 107 input_data, in depthwise_int4_generic_arm_depthwise_conv_s4() 140 const int8_t *input_data = depthwise_int4_generic_2_input; in depthwise_int4_generic_2_arm_depthwise_conv_s4() local 177 input_data, in depthwise_int4_generic_2_arm_depthwise_conv_s4() 200 input_data, in depthwise_int4_generic_2_arm_depthwise_conv_s4() 233 const int8_t *input_data = depthwise_int4_generic_3_input; in depthwise_int4_generic_3_arm_depthwise_conv_s4() local 270 input_data, in depthwise_int4_generic_3_arm_depthwise_conv_s4() 293 input_data, in depthwise_int4_generic_3_arm_depthwise_conv_s4() 326 const int8_t *input_data = depthwise_int4_generic_4_input; in depthwise_int4_generic_4_arm_depthwise_conv_s4() local [all …]
|
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_fully_connected_s4/ |
D | test_arm_fully_connected_s4.c | 47 const int8_t *input_data = fully_connected_int4_input; in fully_connected_int4_arm_fully_connected_s4() local 77 input_data, in fully_connected_int4_arm_fully_connected_s4() 110 const int8_t *input_data = fully_connected_int4_2_input; in fully_connected_int4_arm_fully_connected_s4_2() local 140 input_data, in fully_connected_int4_arm_fully_connected_s4_2() 173 const int8_t *input_data = fully_connected_int4_3_input; in fully_connected_int4_arm_fully_connected_s4_3() local 203 input_data, in fully_connected_int4_arm_fully_connected_s4_3() 236 const int8_t *input_data = fully_connected_int4_4_input; in fully_connected_int4_arm_fully_connected_s4_4() local 266 input_data, in fully_connected_int4_arm_fully_connected_s4_4() 299 const int8_t *input_data = fully_connected_int4_5_input; in fully_connected_int4_arm_fully_connected_s4_5() local 329 input_data, in fully_connected_int4_arm_fully_connected_s4_5() [all …]
|