/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_fully_connected_s4/ |
D | test_arm_fully_connected_s4.c | 69 int32_t buf_size = 0; in fully_connected_int4_arm_fully_connected_s4() local 70 ctx.buf = malloc(buf_size); in fully_connected_int4_arm_fully_connected_s4() 71 ctx.size = buf_size; in fully_connected_int4_arm_fully_connected_s4() 88 memset(ctx.buf, 0, buf_size); in fully_connected_int4_arm_fully_connected_s4() 132 int32_t buf_size = 0; in fully_connected_int4_arm_fully_connected_s4_2() local 133 ctx.buf = malloc(buf_size); in fully_connected_int4_arm_fully_connected_s4_2() 134 ctx.size = buf_size; in fully_connected_int4_arm_fully_connected_s4_2() 151 memset(ctx.buf, 0, buf_size); in fully_connected_int4_arm_fully_connected_s4_2() 195 int32_t buf_size = 0; in fully_connected_int4_arm_fully_connected_s4_3() local 196 ctx.buf = malloc(buf_size); in fully_connected_int4_arm_fully_connected_s4_3() [all …]
|
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_convolve_s16/ |
D | test_arm_convolve_s16.c | 83 int buf_size = arm_convolve_s16_get_buffer_size(&input_dims, &filter_dims); in int16xint8_arm_convolve_s16() local 84 ctx.buf = malloc(buf_size); in int16xint8_arm_convolve_s16() 100 memset(ctx.buf, 0, buf_size); in int16xint8_arm_convolve_s16() 107 …buf_size = arm_convolve_wrapper_s16_get_buffer_size(&conv_params, &input_dims, &filter_dims, &outp… in int16xint8_arm_convolve_s16() 108 ctx.buf = malloc(buf_size); in int16xint8_arm_convolve_s16() 123 memset(ctx.buf, 0, buf_size); in int16xint8_arm_convolve_s16() 173 int buf_size = arm_convolve_s16_get_buffer_size(&input_dims, &filter_dims); in requantize_s64_arm_convolve_s16() local 174 ctx.buf = malloc(buf_size); in requantize_s64_arm_convolve_s16() 189 memset(ctx.buf, 0, buf_size); in requantize_s64_arm_convolve_s16() 196 …buf_size = arm_convolve_wrapper_s16_get_buffer_size(&conv_params, &input_dims, &filter_dims, &outp… in requantize_s64_arm_convolve_s16() [all …]
|
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_fully_connected_s16/ |
D | test_arm_fully_connected_s16.c | 67 int32_t buf_size = arm_fully_connected_s16_get_buffer_size(&filter_dims); in fully_connected_int16_arm_fully_connected_s16() local 68 ctx.buf = malloc(buf_size); in fully_connected_int16_arm_fully_connected_s16() 69 ctx.size = buf_size; in fully_connected_int16_arm_fully_connected_s16() 86 memset(ctx.buf, 0, buf_size); in fully_connected_int16_arm_fully_connected_s16() 132 int32_t buf_size = arm_fully_connected_s16_get_buffer_size(&filter_dims); in fully_connected_int16_big_arm_fully_connected_s16() local 133 ctx.buf = malloc(buf_size); in fully_connected_int16_big_arm_fully_connected_s16() 134 ctx.size = buf_size; in fully_connected_int16_big_arm_fully_connected_s16() 150 memset(ctx.buf, 0, buf_size); in fully_connected_int16_big_arm_fully_connected_s16() 196 int32_t buf_size = arm_fully_connected_s16_get_buffer_size(&filter_dims); in fc_int16_slow_arm_fully_connected_s16() local 197 ctx.buf = malloc(buf_size); in fc_int16_slow_arm_fully_connected_s16() [all …]
|
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_convolve_s8/ |
D | test_arm_convolve_s8.c | 83 int32_t buf_size = arm_convolve_s8_get_buffer_size(&input_dims, &filter_dims); in basic_arm_convolve_s8() local 84 ctx.buf = malloc(buf_size); in basic_arm_convolve_s8() 102 memset(ctx.buf, 0, buf_size); in basic_arm_convolve_s8() 109 …buf_size = arm_convolve_wrapper_s8_get_buffer_size(&conv_params, &input_dims, &filter_dims, &outpu… in basic_arm_convolve_s8() 110 ctx.buf = malloc(buf_size); in basic_arm_convolve_s8() 127 memset(ctx.buf, 0, buf_size); in basic_arm_convolve_s8() 178 int32_t buf_size = arm_convolve_s8_get_buffer_size(&input_dims, &filter_dims); in stride2pad1_arm_convolve_s8() local 179 ctx.buf = malloc(buf_size); in stride2pad1_arm_convolve_s8() 196 memset(ctx.buf, 0, buf_size); in stride2pad1_arm_convolve_s8() 203 …buf_size = arm_convolve_wrapper_s8_get_buffer_size(&conv_params, &input_dims, &filter_dims, &outpu… in stride2pad1_arm_convolve_s8() [all …]
|
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_fully_connected_s8/ |
D | test_arm_fully_connected_s8.c | 68 const int32_t buf_size = arm_fully_connected_s8_get_buffer_size(&filter_dims); in fully_connected_arm_fully_connected_s8() local 69 ctx.buf = malloc(buf_size); in fully_connected_arm_fully_connected_s8() 70 ctx.size = buf_size; in fully_connected_arm_fully_connected_s8() 92 memset(ctx.buf, 0, buf_size); in fully_connected_arm_fully_connected_s8() 136 const int32_t buf_size = arm_fully_connected_s8_get_buffer_size(&filter_dims); in fully_connected_w_zp_arm_fully_connected_s8() local 137 ctx.buf = malloc(buf_size); in fully_connected_w_zp_arm_fully_connected_s8() 138 ctx.size = buf_size; in fully_connected_w_zp_arm_fully_connected_s8() 160 memset(ctx.buf, 0, buf_size); in fully_connected_w_zp_arm_fully_connected_s8() 199 const int32_t buf_size = arm_fully_connected_s8_get_buffer_size(&filter_dims); in fully_connected_mve_0_arm_fully_connected_s8() local 200 ctx.buf = malloc(buf_size); in fully_connected_mve_0_arm_fully_connected_s8() [all …]
|
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_convolve_s4/ |
D | test_arm_convolve_s4.c | 88 int32_t buf_size = arm_convolve_s4_get_buffer_size(&input_dims, &filter_dims); in basic_arm_convolve_s4() local 89 ctx.buf = malloc(buf_size); in basic_arm_convolve_s4() 107 memset(ctx.buf, 0, buf_size); in basic_arm_convolve_s4() 114 …buf_size = arm_convolve_wrapper_s4_get_buffer_size(&conv_params, &input_dims, &filter_dims, &outpu… in basic_arm_convolve_s4() 115 ctx.buf = malloc(buf_size); in basic_arm_convolve_s4() 132 memset(ctx.buf, 0, buf_size); in basic_arm_convolve_s4() 182 int32_t buf_size = arm_convolve_s4_get_buffer_size(&input_dims, &filter_dims); in basic_2_arm_convolve_s4() local 183 ctx.buf = malloc(buf_size); in basic_2_arm_convolve_s4() 201 memset(ctx.buf, 0, buf_size); in basic_2_arm_convolve_s4() 208 …buf_size = arm_convolve_wrapper_s4_get_buffer_size(&conv_params, &input_dims, &filter_dims, &outpu… in basic_2_arm_convolve_s4() [all …]
|
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_depthwise_conv_fast_s16/ |
D | test_arm_depthwise_conv_fast_s16.c | 79 int buf_size = arm_depthwise_conv_fast_s16_get_buffer_size(&input_dims, &filter_dims); in dw_int16xint8_fast_arm_depthwise_conv_fast_s16() local 80 ctx.buf = malloc(buf_size); in dw_int16xint8_fast_arm_depthwise_conv_fast_s16() 97 memset(ctx.buf, 0, buf_size); in dw_int16xint8_fast_arm_depthwise_conv_fast_s16() 105 buf_size, in dw_int16xint8_fast_arm_depthwise_conv_fast_s16() 108 ctx.buf = malloc(buf_size); in dw_int16xint8_fast_arm_depthwise_conv_fast_s16() 124 memset(ctx.buf, 0, buf_size); in dw_int16xint8_fast_arm_depthwise_conv_fast_s16() 176 int buf_size = arm_depthwise_conv_fast_s16_get_buffer_size(&input_dims, &filter_dims); in dw_int16xint8_fast_spill_arm_depthwise_conv_fast_s16() local 177 ctx.buf = malloc(buf_size); in dw_int16xint8_fast_spill_arm_depthwise_conv_fast_s16() 193 memset(ctx.buf, 0, buf_size); in dw_int16xint8_fast_spill_arm_depthwise_conv_fast_s16() 201 buf_size, in dw_int16xint8_fast_spill_arm_depthwise_conv_fast_s16() [all …]
|
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_convolve_1_x_n_s8/ |
D | test_arm_convolve_1_x_n_s8.c | 79 …int32_t buf_size = arm_convolve_1_x_n_s8_get_buffer_size(&conv_params, &input_dims, &filter_dims, … in conv_1_x_n_1_arm_convolve_s8() local 80 ctx.buf = malloc(buf_size); in conv_1_x_n_1_arm_convolve_s8() 97 memset(ctx.buf, 0, buf_size); in conv_1_x_n_1_arm_convolve_s8() 104 buf_size = arm_convolve_s8_get_buffer_size(&input_dims, &filter_dims); in conv_1_x_n_1_arm_convolve_s8() 105 ctx.buf = malloc(buf_size); in conv_1_x_n_1_arm_convolve_s8() 120 memset(ctx.buf, 0, buf_size); in conv_1_x_n_1_arm_convolve_s8() 171 …int32_t buf_size = arm_convolve_1_x_n_s8_get_buffer_size(&conv_params, &input_dims, &filter_dims, … in conv_1_x_n_2_arm_convolve_s8() local 172 ctx.buf = malloc(buf_size); in conv_1_x_n_2_arm_convolve_s8() 189 memset(ctx.buf, 0, buf_size); in conv_1_x_n_2_arm_convolve_s8() 195 …buf_size = arm_convolve_wrapper_s8_get_buffer_size(&conv_params, &input_dims, &filter_dims, &outpu… in conv_1_x_n_2_arm_convolve_s8() [all …]
|
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_depthwise_conv_3x3_s8/ |
D | test_arm_depthwise_conv_3x3_s8.c | 98 const int32_t buf_size = in depthwise_kernel_3x3_arm_depthwise_conv_3x3_s8() local 102 TEST_ASSERT_TRUE(buf_size > 0); in depthwise_kernel_3x3_arm_depthwise_conv_3x3_s8() 104 TEST_ASSERT_EQUAL(buf_size, 0); in depthwise_kernel_3x3_arm_depthwise_conv_3x3_s8() 107 ctx.buf = malloc(buf_size); in depthwise_kernel_3x3_arm_depthwise_conv_3x3_s8() 108 ctx.size = buf_size; in depthwise_kernel_3x3_arm_depthwise_conv_3x3_s8() 124 memset(ctx.buf, 0, buf_size); in depthwise_kernel_3x3_arm_depthwise_conv_3x3_s8() 198 const int32_t buf_size = in depthwise_kernel_3x3_arm_depthwise_conv_3x3_1_s8() local 203 TEST_ASSERT_TRUE(buf_size > 0); in depthwise_kernel_3x3_arm_depthwise_conv_3x3_1_s8() 205 TEST_ASSERT_EQUAL(buf_size, 0); in depthwise_kernel_3x3_arm_depthwise_conv_3x3_1_s8() 208 ctx.buf = malloc(buf_size); in depthwise_kernel_3x3_arm_depthwise_conv_3x3_1_s8() [all …]
|
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_transpose_conv_s8/ |
D | test_arm_transpose_conv_s8.c | 80 …const int32_t buf_size = arm_transpose_conv_s8_get_buffer_size(&input_dims, &filter_dims, &output_… in transpose_conv_1_arm_transpose_conv_s8() local 81 ctx.buf = malloc(buf_size); in transpose_conv_1_arm_transpose_conv_s8() 82 ctx.size = buf_size; in transpose_conv_1_arm_transpose_conv_s8() 107 memset(ctx.buf, 0, buf_size); in transpose_conv_1_arm_transpose_conv_s8() 166 …const int32_t buf_size = arm_transpose_conv_s8_get_buffer_size(&input_dims, &filter_dims, &output_… in transpose_conv_2_arm_transpose_conv_s8() local 167 ctx.buf = malloc(buf_size); in transpose_conv_2_arm_transpose_conv_s8() 168 ctx.size = buf_size; in transpose_conv_2_arm_transpose_conv_s8() 193 memset(ctx.buf, 0, buf_size); in transpose_conv_2_arm_transpose_conv_s8() 251 …const int32_t buf_size = arm_transpose_conv_s8_get_buffer_size(&input_dims, &filter_dims, &output_… in transpose_conv_3_arm_transpose_conv_s8() local 252 ctx.buf = malloc(buf_size); in transpose_conv_3_arm_transpose_conv_s8() [all …]
|
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_depthwise_conv_s8/ |
D | test_arm_depthwise_conv_s8.c | 97 const int32_t buf_size = in depthwise_2_arm_depthwise_conv_s8() local 99 TEST_ASSERT_EQUAL(buf_size, 0); in depthwise_2_arm_depthwise_conv_s8() 101 ctx.buf = malloc(buf_size); in depthwise_2_arm_depthwise_conv_s8() 102 ctx.size = buf_size; in depthwise_2_arm_depthwise_conv_s8() 118 memset(ctx.buf, 0, buf_size); in depthwise_2_arm_depthwise_conv_s8() 192 const int32_t buf_size = in depthwise_mult_batches_arm_depthwise_conv_s8() local 195 TEST_ASSERT_EQUAL(buf_size, 0); in depthwise_mult_batches_arm_depthwise_conv_s8() 197 ctx.buf = malloc(buf_size); in depthwise_mult_batches_arm_depthwise_conv_s8() 198 ctx.size = buf_size; in depthwise_mult_batches_arm_depthwise_conv_s8() 214 memset(ctx.buf, 0, buf_size); in depthwise_mult_batches_arm_depthwise_conv_s8() [all …]
|
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_grouped_convolve_s8/ |
D | test_arm_grouped_convolve_s8.c | 74 int32_t buf_size = arm_convolve_s8_get_buffer_size(&input_dims, &filter_dims); in grouped_conv_arm_grouped_convolve_1_s8() local 75 ctx.buf = malloc(buf_size); in grouped_conv_arm_grouped_convolve_1_s8() 93 memset(ctx.buf, 0, buf_size); in grouped_conv_arm_grouped_convolve_1_s8() 145 int32_t buf_size = arm_convolve_s8_get_buffer_size(&input_dims, &filter_dims); in grouped_conv_arm_grouped_convolve_2_s8() local 146 ctx.buf = malloc(buf_size); in grouped_conv_arm_grouped_convolve_2_s8() 164 memset(ctx.buf, 0, buf_size); in grouped_conv_arm_grouped_convolve_2_s8() 216 int32_t buf_size = arm_convolve_s8_get_buffer_size(&input_dims, &filter_dims); in grouped_conv_arm_grouped_convolve_3_s8() local 217 ctx.buf = malloc(buf_size); in grouped_conv_arm_grouped_convolve_3_s8() 235 memset(ctx.buf, 0, buf_size); in grouped_conv_arm_grouped_convolve_3_s8() 287 int32_t buf_size = arm_convolve_s8_get_buffer_size(&input_dims, &filter_dims); in grouped_conv_arm_grouped_convolve_4_s8() local [all …]
|
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_svdf_s8/ |
D | test_arm_svdf_s8.c | 73 const int32_t buf_size = arm_svdf_s8_get_buffer_size(&weights_feature_dims); in svdf_int8_arm_svdf_s8() local 74 ctx.buf = malloc(buf_size); in svdf_int8_arm_svdf_s8() 75 ctx.size = buf_size; in svdf_int8_arm_svdf_s8() 127 memset(ctx.buf, 0, buf_size); in svdf_int8_arm_svdf_s8() 188 const int32_t buf_size = arm_svdf_s8_get_buffer_size(&weights_feature_dims); in svdf_int8_2_arm_svdf_s8() local 189 ctx.buf = malloc(buf_size); in svdf_int8_2_arm_svdf_s8() 190 ctx.size = buf_size; in svdf_int8_2_arm_svdf_s8() 238 memset(ctx.buf, 0, buf_size); in svdf_int8_2_arm_svdf_s8()
|
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_depthwise_conv_s16/ |
D | test_arm_depthwise_conv_s16.c | 96 int buf_size = in dw_int16xint8_arm_depthwise_conv_s16() local 99 TEST_ASSERT_EQUAL(buf_size, 0); in dw_int16xint8_arm_depthwise_conv_s16() 101 ctx.buf = malloc(buf_size); in dw_int16xint8_arm_depthwise_conv_s16() 117 memset(ctx.buf, 0, buf_size); in dw_int16xint8_arm_depthwise_conv_s16() 193 int buf_size = in dw_int16xint8_dilation_arm_depthwise_conv_s16() local 196 TEST_ASSERT_EQUAL(buf_size, 0); in dw_int16xint8_dilation_arm_depthwise_conv_s16() 198 ctx.buf = malloc(buf_size); in dw_int16xint8_dilation_arm_depthwise_conv_s16() 214 memset(ctx.buf, 0, buf_size); in dw_int16xint8_dilation_arm_depthwise_conv_s16() 290 int buf_size = in dw_int16xint8_mult4_arm_depthwise_conv_s16() local 293 TEST_ASSERT_EQUAL(buf_size, 0); in dw_int16xint8_mult4_arm_depthwise_conv_s16() [all …]
|
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_convolve_1x1_s4_fast/ |
D | test_arm_convolve_1x1_s4_fast.c | 80 const int32_t buf_size = arm_convolve_1x1_s4_fast_get_buffer_size(&input_dims); in kernel1x1_arm_convolve_1x1_s4_fast() local 81 ctx.buf = malloc(buf_size); in kernel1x1_arm_convolve_1x1_s4_fast() 99 memset(ctx.buf, 0, buf_size); in kernel1x1_arm_convolve_1x1_s4_fast() 154 const int32_t buf_size = arm_convolve_1x1_s4_fast_get_buffer_size(&input_dims); in kernel1x1_2_arm_convolve_1x1_s4_fast() local 155 ctx.buf = malloc(buf_size); in kernel1x1_2_arm_convolve_1x1_s4_fast() 173 memset(ctx.buf, 0, buf_size); in kernel1x1_2_arm_convolve_1x1_s4_fast() 227 const int32_t buf_size = arm_convolve_1x1_s4_fast_get_buffer_size(&input_dims); in kernel1x1_3_arm_convolve_1x1_s4_fast() local 228 ctx.buf = malloc(buf_size); in kernel1x1_3_arm_convolve_1x1_s4_fast() 246 memset(ctx.buf, 0, buf_size); in kernel1x1_3_arm_convolve_1x1_s4_fast() 303 const int32_t buf_size = arm_convolve_1x1_s4_fast_get_buffer_size(&input_dims); in kernel1x1_stride_x_arm_convolve_1x1_s4() local [all …]
|
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_convolve_1x1_s8_fast/ |
D | test_arm_convolve_1x1_s8_fast.c | 76 const int32_t buf_size = arm_convolve_1x1_s8_fast_get_buffer_size(&input_dims); in kernel1x1_arm_convolve_1x1_s8_fast() local 77 ctx.buf = malloc(buf_size); in kernel1x1_arm_convolve_1x1_s8_fast() 95 memset(ctx.buf, 0, buf_size); in kernel1x1_arm_convolve_1x1_s8_fast() 150 const int32_t buf_size = arm_convolve_1x1_s8_fast_get_buffer_size(&input_dims); in kernel1x1_stride_x_arm_convolve_1x1_s8() local 169 memset(ctx.buf, 0, buf_size); in kernel1x1_stride_x_arm_convolve_1x1_s8() 238 const int32_t buf_size = in kernel1x1_stride_x_y_arm_convolve_1x1_s8() local 240 ctx.buf = malloc(buf_size); in kernel1x1_stride_x_y_arm_convolve_1x1_s8() 241 ctx.size = buf_size; in kernel1x1_stride_x_y_arm_convolve_1x1_s8() 259 memset(ctx.buf, 0, buf_size); in kernel1x1_stride_x_y_arm_convolve_1x1_s8() 444 const int32_t buf_size = arm_convolve_1x1_s8_fast_get_buffer_size(&input_dims); in buffer_size_arm_convolve_1x1_s8_fast() local [all …]
|
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_depthwise_conv_s8_opt/ |
D | test_arm_depthwise_conv_s8_opt.c | 409 const int32_t buf_size = in depthwise_out_activation_arm_depthwise_conv_s8_opt() local 412 TEST_ASSERT_EQUAL(buf_size, ctx.size); in depthwise_out_activation_arm_depthwise_conv_s8_opt() 414 ctx.buf = malloc(buf_size); in depthwise_out_activation_arm_depthwise_conv_s8_opt() 415 ctx.size = buf_size; in depthwise_out_activation_arm_depthwise_conv_s8_opt() 431 memset(ctx.buf, 0, buf_size); in depthwise_out_activation_arm_depthwise_conv_s8_opt() 511 const int32_t buf_size = in depthwise_null_bias_0_arm_depthwise_conv_s8_opt() local 514 TEST_ASSERT_EQUAL(buf_size, ctx.size); in depthwise_null_bias_0_arm_depthwise_conv_s8_opt() 516 ctx.buf = malloc(buf_size); in depthwise_null_bias_0_arm_depthwise_conv_s8_opt() 517 ctx.size = buf_size; in depthwise_null_bias_0_arm_depthwise_conv_s8_opt() 533 memset(ctx.buf, 0, buf_size); in depthwise_null_bias_0_arm_depthwise_conv_s8_opt() [all …]
|
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_avgpool_s16/ |
D | test_arm_avgpool_s16.c | 216 …const int32_t buf_size = arm_avgpool_s16_get_buffer_size(AVGPOOLING_INT16_3_OUTPUT_W, AVGPOOLING_I… in buffer_size_mve_arm_avgpool_s16() local 220 TEST_ASSERT_EQUAL(buf_size, mve_buf_size); in buffer_size_mve_arm_avgpool_s16() 227 …const int32_t buf_size = arm_avgpool_s16_get_buffer_size(AVGPOOLING_INT16_3_OUTPUT_W, AVGPOOLING_I… in buffer_size_dsp_arm_avgpool_s16() local 231 TEST_ASSERT_EQUAL(buf_size, dsp_buf_size); in buffer_size_dsp_arm_avgpool_s16()
|
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_avgpool_s8/ |
D | test_arm_avgpool_s8.c | 310 …const int32_t buf_size = arm_avgpool_s8_get_buffer_size(AVGPOOLING_5_OUTPUT_W, AVGPOOLING_5_IN_CH); in buffer_size_mve_arm_avgpool_s8() local 313 TEST_ASSERT_EQUAL(buf_size, mve_buf_size); in buffer_size_mve_arm_avgpool_s8() 320 …const int32_t buf_size = arm_avgpool_s8_get_buffer_size(AVGPOOLING_5_OUTPUT_W, AVGPOOLING_5_IN_CH); in buffer_size_dsp_arm_avgpool_s8() local 323 TEST_ASSERT_EQUAL(buf_size, dsp_buf_size); in buffer_size_dsp_arm_avgpool_s8()
|