/cmsis-nn-3.6.0-3.5.0/Tests/UnitTest/TestCases/test_arm_lstm_unidirectional_s16_s8/ |
D | test_arm_lstm_unidirectional_s16_s8.c | 65 lstm.input_to_input_scaling.shift = LSTM_1_IN_TO_INPUT_SHIFT; in lstm_1_arm_lstm_unidirectional_s16_s8() 67 lstm.input_to_forget_scaling.shift = LSTM_1_IN_TO_FORGET_SHIFT; in lstm_1_arm_lstm_unidirectional_s16_s8() 69 lstm.input_to_cell_scaling.shift = LSTM_1_IN_TO_CELL_SHIFT; in lstm_1_arm_lstm_unidirectional_s16_s8() 71 lstm.input_to_output_scaling.shift = LSTM_1_IN_TO_OUTPUT_SHIFT; in lstm_1_arm_lstm_unidirectional_s16_s8() 74 lstm.recurrent_to_input_scaling.shift = LSTM_1_RECURRENT_TO_INPUT_SHIFT; in lstm_1_arm_lstm_unidirectional_s16_s8() 76 lstm.recurrent_to_cell_scaling.shift = LSTM_1_RECURRENT_TO_CELL_SHIFT; in lstm_1_arm_lstm_unidirectional_s16_s8() 78 lstm.recurrent_to_forget_scaling.shift = LSTM_1_RECURRENT_TO_FORGET_SHIFT; in lstm_1_arm_lstm_unidirectional_s16_s8() 80 lstm.recurrent_to_output_scaling.shift = LSTM_1_RECURRENT_TO_OUTPUT_SHIFT; in lstm_1_arm_lstm_unidirectional_s16_s8() 101 lstm.hidden_scaling.shift = LSTM_1_HIDDEN_SHIFT; in lstm_1_arm_lstm_unidirectional_s16_s8() 159 lstm.input_to_input_scaling.shift = LSTM_2_IN_TO_INPUT_SHIFT; in lstm_2_arm_lstm_unidirectional_s16_s8() [all …]
|
/cmsis-nn-3.6.0-3.5.0/Source/SoftmaxFunctions/ |
D | arm_softmax_s8_s16.c | 47 const int32_t shift, in arm_softmax_s8_s16() argument 51 … arm_nn_softmax_common_s8(input, num_rows, row_size, mult, shift, diff_min, true, (void *)output); in arm_softmax_s8_s16()
|
D | arm_softmax_u8.c | 48 const int32_t shift, in arm_softmax_u8() argument 52 const int32_t mask = (1 << shift); in arm_softmax_u8()
|
D | arm_softmax_s8.c | 40 int32_t shift = SHIFT_START; in arm_exp_on_negative_values_mve_32x4() local 54 …mve_pred16_t p = vcmpneq_n_s32(remainder & vdupq_n_s32(1 << shift++), 0); … in arm_exp_on_negative_values_mve_32x4() 90 const int32_t shift, in arm_softmax_s8() argument 99 const int32_t mask = (1 << shift); in arm_softmax_s8() 209 … arm_nn_softmax_common_s8(input, num_rows, row_size, mult, shift, diff_min, false, (void *)output); in arm_softmax_s8()
|
D | arm_nn_softmax_common_s8.c | 60 const int32_t shift, in arm_nn_softmax_common_s8() argument 65 const int32_t mask = (1 << shift); in arm_nn_softmax_common_s8()
|
D | arm_softmax_s16.c | 43 const int32_t shift, in arm_softmax_s16() argument 71 const int32_t scaled_diff = arm_nn_requantize(diff, mult, shift); in arm_softmax_s16()
|
/cmsis-nn-3.6.0-3.5.0/Tests/UnitTest/TestCases/test_arm_softmax_s8/ |
D | test_arm_softmax_s8.c | 32 const int32_t shift = SOFTMAX_INPUT_LEFT_SHIFT; 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() 49 const int32_t shift = SOFTMAX_INPUT_LEFT_SHIFT; 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-3.6.0-3.5.0/Tests/UnitTest/TestCases/test_arm_softmax_s8_s16/ |
D | test_arm_softmax_s8_s16.c | 32 const int32_t shift = SOFTMAX_S8_S16_INPUT_LEFT_SHIFT; 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() 49 const int32_t shift = SOFTMAX_S8_S16_INPUT_LEFT_SHIFT; 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-3.6.0-3.5.0/Tests/UnitTest/TestCases/test_arm_softmax_s16/ |
D | test_arm_softmax_s16.c | 34 const int32_t shift = SOFTMAX_S16_INPUT_LEFT_SHIFT; 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-3.6.0-3.5.0/Include/ |
D | arm_nnsupportfunctions.h | 776 const int32_t shift, 906 …EINLINE int32_t arm_nn_requantize(const int32_t val, const int32_t multiplier, const int32_t shift) in arm_nn_requantize() argument 909 const int64_t total_shift = 31 - shift; in arm_nn_requantize() 917 …ivide_by_power_of_two(arm_nn_doubling_high_mult_no_sat(val * (1 << LEFT_SHIFT(shift)), multiplier), in arm_nn_requantize() 918 RIGHT_SHIFT(shift)); in arm_nn_requantize() 934 const int32_t shift) in arm_nn_requantize_s64() argument 938 int32_t result = new_val >> (14 - shift); // 64->32 bit reduction in arm_nn_requantize_s64() 1003 const int32x4_t shift = vdupq_n_s32(-exponent); in arm_divide_by_power_of_two_mve() local 1004 const int32x4_t fixup = vshrq_n_s32(vandq_s32(dividend, shift), 31); in arm_divide_by_power_of_two_mve() 1006 return vrshlq_s32(fixed_up_dividend, shift); in arm_divide_by_power_of_two_mve() [all …]
|
D | arm_nn_types.h | 89 int32_t *shift; /**< Shift values */ member 96 int32_t shift; /**< Shift value */ member 191 int32_t shift; /**< Shift value */ member
|
/cmsis-nn-3.6.0-3.5.0/Source/NNSupportFunctions/ |
D | arm_nn_lstm_calculate_gate_s8_s16.c | 79 input_to_gate_scaling.shift, in arm_nn_lstm_calculate_gate_s8_s16() 90 recurrent_to_gate.shift, in arm_nn_lstm_calculate_gate_s8_s16()
|
D | arm_nn_depthwise_conv_nt_t_padded_s8.c | 124 const int32x4_t shift = vldrwq_s32(out_shift); in arm_nn_depthwise_conv_nt_t_padded_s8() local 128 out_0 = arm_requantize_mve_32x4(out_0, mult, shift); in arm_nn_depthwise_conv_nt_t_padded_s8() 135 out_1 = arm_requantize_mve_32x4(out_1, mult, shift); in arm_nn_depthwise_conv_nt_t_padded_s8() 141 out_2 = arm_requantize_mve_32x4(out_2, mult, shift); in arm_nn_depthwise_conv_nt_t_padded_s8() 147 out_3 = arm_requantize_mve_32x4(out_3, mult, shift); in arm_nn_depthwise_conv_nt_t_padded_s8()
|
D | arm_nn_depthwise_conv_nt_t_s16.c | 105 int32_t shift = out_shift[i_requantize]; in arm_nn_depthwise_conv_nt_t_s16() local 120 out_0[i_requantize] = arm_nn_requantize_s64(in_requantize_0, reduced_multiplier, shift); in arm_nn_depthwise_conv_nt_t_s16() 121 out_1[i_requantize] = arm_nn_requantize_s64(in_requantize_1, reduced_multiplier, shift); in arm_nn_depthwise_conv_nt_t_s16() 122 out_2[i_requantize] = arm_nn_requantize_s64(in_requantize_2, reduced_multiplier, shift); in arm_nn_depthwise_conv_nt_t_s16() 123 out_3[i_requantize] = arm_nn_requantize_s64(in_requantize_3, reduced_multiplier, shift); in arm_nn_depthwise_conv_nt_t_s16()
|
D | arm_nn_depthwise_conv_nt_t_s8.c | 118 const int32x4_t shift = vldrwq_s32(out_shift); in arm_nn_depthwise_conv_nt_t_s8() local 123 out_0 = arm_requantize_mve_32x4(out_0, mult, shift); in arm_nn_depthwise_conv_nt_t_s8() 129 out_1 = arm_requantize_mve_32x4(out_1, mult, shift); in arm_nn_depthwise_conv_nt_t_s8() 135 out_2 = arm_requantize_mve_32x4(out_2, mult, shift); in arm_nn_depthwise_conv_nt_t_s8() 141 out_3 = arm_requantize_mve_32x4(out_3, mult, shift); in arm_nn_depthwise_conv_nt_t_s8()
|
D | arm_nn_lstm_update_output_s8_s16.c | 76 hidden_scaling.shift, in arm_nn_lstm_update_output_s8_s16()
|
/cmsis-nn-3.6.0-3.5.0/Source/ConvolutionFunctions/ |
D | arm_nn_depthwise_conv_s8_core.c | 134 const int32x4_t shift = vldrwq_s32(out_shift); in arm_nn_depthwise_conv_s8_core() local 138 out_0 = arm_requantize_mve_32x4(out_0, mult, shift); in arm_nn_depthwise_conv_s8_core() 139 out_1 = arm_requantize_mve_32x4(out_1, mult, shift); in arm_nn_depthwise_conv_s8_core() 185 const int32x4_t shift = vldrwq_z_s32(out_shift, p); in arm_nn_depthwise_conv_s8_core() local 187 col_0_sum = arm_requantize_mve_32x4(col_0_sum, mult, shift); in arm_nn_depthwise_conv_s8_core() 188 col_1_sum = arm_requantize_mve_32x4(col_1_sum, mult, shift); in arm_nn_depthwise_conv_s8_core()
|
D | arm_convolve_1x1_s8_fast.c | 81 quant_params->shift, in arm_convolve_1x1_s8_fast()
|
/cmsis-nn-3.6.0-3.5.0/Tests/UnitTest/TestCases/test_arm_ds_cnn_l_s8/ |
D | test_arm_ds_cnn_l_s8.c | 164 quant_params.shift = (int32_t *)ds_cnn_l_layer_1_conv_2d_output_shift; in ds_cnn_l_s8_inference() 208 quant_params.shift = (int32_t *)ds_cnn_l_layer_2_depthwise_conv_2d_output_shift; in ds_cnn_l_s8_inference() 251 quant_params.shift = (int32_t *)ds_cnn_l_layer_3_conv_2d_output_shift; in ds_cnn_l_s8_inference() 277 quant_params.shift = (int32_t *)ds_cnn_l_layer_4_depthwise_conv_2d_output_shift; in ds_cnn_l_s8_inference() 296 quant_params.shift = (int32_t *)ds_cnn_l_layer_5_conv_2d_output_shift; in ds_cnn_l_s8_inference() 316 quant_params.shift = (int32_t *)ds_cnn_l_layer_6_depthwise_conv_2d_output_shift; in ds_cnn_l_s8_inference() 334 quant_params.shift = (int32_t *)ds_cnn_l_layer_7_conv_2d_output_shift; in ds_cnn_l_s8_inference() 354 quant_params.shift = (int32_t *)ds_cnn_l_layer_8_depthwise_conv_2d_output_shift; in ds_cnn_l_s8_inference() 372 quant_params.shift = (int32_t *)ds_cnn_l_layer_9_conv_2d_output_shift; in ds_cnn_l_s8_inference() 391 quant_params.shift = (int32_t *)ds_cnn_l_layer_10_depthwise_conv_2d_output_shift; in ds_cnn_l_s8_inference() [all …]
|
/cmsis-nn-3.6.0-3.5.0/Tests/UnitTest/TestCases/test_arm_ds_cnn_s_s8/ |
D | test_arm_ds_cnn_s_s8.c | 143 quant_params.shift = (int32_t *)ds_cnn_s_layer_1_conv_2d_output_shift; in ds_cnn_s_s8_inference() 190 quant_params.shift = (int32_t *)ds_cnn_s_layer_2_depthwise_conv_2d_output_shift; in ds_cnn_s_s8_inference() 233 quant_params.shift = (int32_t *)ds_cnn_s_layer_3_conv_2d_output_shift; in ds_cnn_s_s8_inference() 253 quant_params.shift = (int32_t *)ds_cnn_s_layer_4_depthwise_conv_2d_output_shift; in ds_cnn_s_s8_inference() 272 quant_params.shift = (int32_t *)ds_cnn_s_layer_5_conv_2d_output_shift; in ds_cnn_s_s8_inference() 292 quant_params.shift = (int32_t *)ds_cnn_s_layer_6_depthwise_conv_2d_output_shift; in ds_cnn_s_s8_inference() 310 quant_params.shift = (int32_t *)ds_cnn_s_layer_7_conv_2d_output_shift; in ds_cnn_s_s8_inference() 330 quant_params.shift = (int32_t *)ds_cnn_s_layer_8_depthwise_conv_2d_output_shift; in ds_cnn_s_s8_inference() 348 quant_params.shift = (int32_t *)ds_cnn_s_layer_9_conv_2d_output_shift; in ds_cnn_s_s8_inference() 393 per_tensor_quant_params.shift = FULLY_CONNECTED_12_OUTPUT_SHIFT; in ds_cnn_s_s8_inference()
|
/cmsis-nn-3.6.0-3.5.0/Tests/UnitTest/TestCases/test_arm_svdf_state_s16_s8/ |
D | test_arm_svdf_state_s16_s8.c | 68 input_quant_params.shift = SVDF_SHIFT_1; in svdf_arm_svdf_state_s16_s8() 70 output_quant_params.shift = SVDF_SHIFT_2; in svdf_arm_svdf_state_s16_s8() 154 input_quant_params.shift = SVDF_1_SHIFT_1; in svdf_1_arm_svdf_state_s16_s8() 156 output_quant_params.shift = SVDF_1_SHIFT_2; in svdf_1_arm_svdf_state_s16_s8() 239 input_quant_params.shift = SVDF_2_SHIFT_1; in svdf_2_arm_svdf_state_s16_s8() 241 output_quant_params.shift = SVDF_2_SHIFT_2; in svdf_2_arm_svdf_state_s16_s8() 324 input_quant_params.shift = SVDF_3_SHIFT_1; in svdf_3_arm_svdf_state_s16_s8() 326 output_quant_params.shift = SVDF_3_SHIFT_2; in svdf_3_arm_svdf_state_s16_s8()
|
/cmsis-nn-3.6.0-3.5.0/Source/FullyConnectedFunctions/ |
D | arm_fully_connected_s16.c | 76 quant_params->shift, in arm_fully_connected_s16()
|
D | arm_fully_connected_s8.c | 77 quant_params->shift, in arm_fully_connected_s8()
|
/cmsis-nn-3.6.0-3.5.0/Tests/UnitTest/TestCases/test_arm_svdf_s8/ |
D | test_arm_svdf_s8.c | 51 input_quant_params.shift = SVDF_INT8_SHIFT_1; in svdf_int8_arm_svdf_s8() 53 output_quant_params.shift = SVDF_INT8_SHIFT_2; in svdf_int8_arm_svdf_s8()
|
/cmsis-nn-3.6.0-3.5.0/Tests/UnitTest/TestCases/test_arm_fully_connected_s8/ |
D | test_arm_fully_connected_s8.c | 65 quant_params.shift = FULLY_CONNECTED_OUTPUT_SHIFT; in fully_connected_arm_fully_connected_s8() 123 quant_params.shift = FULLY_CONNECTED_MVE_0_OUTPUT_SHIFT; in fully_connected_mve_0_arm_fully_connected_s8() 179 quant_params.shift = FULLY_CONNECTED_MVE_1_OUTPUT_SHIFT; in fully_connected_mve_1_arm_fully_connected_s8() 235 quant_params.shift = FULLY_CONNECTED_NULL_BIAS_0_OUTPUT_SHIFT; in fully_connected_null_bias_0_arm_fully_connected_s8() 302 quant_params.shift = FULLY_CONNECTED_OUT_ACTIVATION_OUTPUT_SHIFT; in fully_connected_out_activation_arm_fully_connected_s8()
|