Home
last modified time | relevance | path

Searched refs:ctx (Results 1 – 25 of 57) sorted by relevance

123

/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_depthwise_conv_s4_opt/
Dtest_arm_depthwise_conv_s4_opt.c35 cmsis_nn_context ctx; in depthwise_int4_1_arm_depthwise_conv_s4_opt() local
73 ctx.size = arm_depthwise_conv_s4_opt_get_buffer_size(&input_dims, &filter_dims); in depthwise_int4_1_arm_depthwise_conv_s4_opt()
75 TEST_ASSERT_TRUE(ctx.size > 0); in depthwise_int4_1_arm_depthwise_conv_s4_opt()
77 ctx.buf = malloc(ctx.size); in depthwise_int4_1_arm_depthwise_conv_s4_opt()
79 arm_cmsis_nn_status result = arm_depthwise_conv_s4_opt(&ctx, in depthwise_int4_1_arm_depthwise_conv_s4_opt()
91 if (ctx.buf) in depthwise_int4_1_arm_depthwise_conv_s4_opt()
94 memset(ctx.buf, 0, ctx.size); in depthwise_int4_1_arm_depthwise_conv_s4_opt()
95 free(ctx.buf); in depthwise_int4_1_arm_depthwise_conv_s4_opt()
100 ctx.buf = malloc(ctx.size); in depthwise_int4_1_arm_depthwise_conv_s4_opt()
101 result = arm_depthwise_conv_wrapper_s4(&ctx, in depthwise_int4_1_arm_depthwise_conv_s4_opt()
[all …]
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_depthwise_conv_s4/
Dtest_arm_depthwise_conv_s4.c37 cmsis_nn_context ctx; in depthwise_int4_generic_arm_depthwise_conv_s4() local
75ctx.size = arm_depthwise_conv_wrapper_s4_get_buffer_size(&dw_conv_params, &input_dims, &filter_dim… in depthwise_int4_generic_arm_depthwise_conv_s4()
76 TEST_ASSERT_TRUE(ctx.size == 0); in depthwise_int4_generic_arm_depthwise_conv_s4()
78 ctx.buf = malloc(ctx.size); in depthwise_int4_generic_arm_depthwise_conv_s4()
80 arm_cmsis_nn_status result = arm_depthwise_conv_s4(&ctx, in depthwise_int4_generic_arm_depthwise_conv_s4()
92 if (ctx.buf) in depthwise_int4_generic_arm_depthwise_conv_s4()
95 memset(ctx.buf, 0, ctx.size); in depthwise_int4_generic_arm_depthwise_conv_s4()
96 free(ctx.buf); in depthwise_int4_generic_arm_depthwise_conv_s4()
102 ctx.buf = malloc(ctx.size); in depthwise_int4_generic_arm_depthwise_conv_s4()
103 result = arm_depthwise_conv_wrapper_s4(&ctx, in depthwise_int4_generic_arm_depthwise_conv_s4()
[all …]
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_avgpool_s8/
Dtest_arm_avgpool_s8.c35 cmsis_nn_context ctx; in avgpooling_arm_avgpool_s8() local
61 ctx.size = arm_avgpool_s8_get_buffer_size(AVGPOOLING_OUTPUT_W, AVGPOOLING_IN_CH); in avgpooling_arm_avgpool_s8()
62 ctx.buf = malloc(ctx.size); in avgpooling_arm_avgpool_s8()
65 … arm_avgpool_s8(&ctx, &pool_params, &input_dims, input_data, &filter_dims, &output_dims, output); in avgpooling_arm_avgpool_s8()
67 if (ctx.buf) in avgpooling_arm_avgpool_s8()
70 memset(ctx.buf, 0, ctx.size); in avgpooling_arm_avgpool_s8()
71 free(ctx.buf); in avgpooling_arm_avgpool_s8()
82 cmsis_nn_context ctx; in avgpooling_1_arm_avgpool_s8() local
108 ctx.size = arm_avgpool_s8_get_buffer_size(AVGPOOLING_1_OUTPUT_W, AVGPOOLING_1_IN_CH); in avgpooling_1_arm_avgpool_s8()
109 ctx.buf = malloc(ctx.size); in avgpooling_1_arm_avgpool_s8()
[all …]
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_avgpool_s16/
Dtest_arm_avgpool_s16.c33 cmsis_nn_context ctx; in avgpooling_int16_arm_avgpool_s16() local
59 ctx.size = arm_avgpool_s16_get_buffer_size(AVGPOOLING_INT16_OUTPUT_W, AVGPOOLING_INT16_IN_CH); in avgpooling_int16_arm_avgpool_s16()
60 ctx.buf = malloc(ctx.size); in avgpooling_int16_arm_avgpool_s16()
63 … arm_avgpool_s16(&ctx, &pool_params, &input_dims, input_data, &filter_dims, &output_dims, output); in avgpooling_int16_arm_avgpool_s16()
65 if (ctx.buf) in avgpooling_int16_arm_avgpool_s16()
68 memset(ctx.buf, 0, ctx.size); in avgpooling_int16_arm_avgpool_s16()
69 free(ctx.buf); in avgpooling_int16_arm_avgpool_s16()
80 cmsis_nn_context ctx; in avgpooling_int16_1_arm_avgpool_s16() local
106ctx.size = arm_avgpool_s16_get_buffer_size(AVGPOOLING_INT16_1_OUTPUT_W, AVGPOOLING_INT16_1_IN_CH); in avgpooling_int16_1_arm_avgpool_s16()
107 ctx.buf = malloc(ctx.size); in avgpooling_int16_1_arm_avgpool_s16()
[all …]
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_depthwise_conv_s8_opt/
Dtest_arm_depthwise_conv_s8_opt.c37 cmsis_nn_context ctx; in basic_arm_depthwise_conv_s8_opt() local
75 ctx.size = arm_depthwise_conv_s8_opt_get_buffer_size(&input_dims, &filter_dims); in basic_arm_depthwise_conv_s8_opt()
78 TEST_ASSERT_TRUE(ctx.size > 0); in basic_arm_depthwise_conv_s8_opt()
80 TEST_ASSERT_EQUAL(ctx.size, 0); in basic_arm_depthwise_conv_s8_opt()
83 ctx.buf = malloc(ctx.size); in basic_arm_depthwise_conv_s8_opt()
85 arm_cmsis_nn_status result = arm_depthwise_conv_s8_opt(&ctx, in basic_arm_depthwise_conv_s8_opt()
97 if (ctx.buf) in basic_arm_depthwise_conv_s8_opt()
100 memset(ctx.buf, 0, ctx.size); in basic_arm_depthwise_conv_s8_opt()
101 free(ctx.buf); in basic_arm_depthwise_conv_s8_opt()
109 TEST_ASSERT_EQUAL(wrapper_buf_size, ctx.size); in basic_arm_depthwise_conv_s8_opt()
[all …]
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_convolve_s8/
Dtest_arm_convolve_s8.c44 cmsis_nn_context ctx; in basic_arm_convolve_s8() local
84 ctx.buf = malloc(buf_size); in basic_arm_convolve_s8()
85 ctx.size = 0; in basic_arm_convolve_s8()
87 arm_cmsis_nn_status result = arm_convolve_s8(&ctx, in basic_arm_convolve_s8()
99 if (ctx.buf) in basic_arm_convolve_s8()
102 memset(ctx.buf, 0, buf_size); in basic_arm_convolve_s8()
103 free(ctx.buf); in basic_arm_convolve_s8()
110 ctx.buf = malloc(buf_size); in basic_arm_convolve_s8()
111 ctx.size = 0; in basic_arm_convolve_s8()
113 result = arm_convolve_wrapper_s8(&ctx, in basic_arm_convolve_s8()
[all …]
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_convolve_s4/
Dtest_arm_convolve_s4.c50 cmsis_nn_context ctx; in basic_arm_convolve_s4() local
89 ctx.buf = malloc(buf_size); in basic_arm_convolve_s4()
90 ctx.size = 0; in basic_arm_convolve_s4()
92 arm_cmsis_nn_status result = arm_convolve_s4(&ctx, in basic_arm_convolve_s4()
104 if (ctx.buf) in basic_arm_convolve_s4()
107 memset(ctx.buf, 0, buf_size); in basic_arm_convolve_s4()
108 free(ctx.buf); in basic_arm_convolve_s4()
115 ctx.buf = malloc(buf_size); in basic_arm_convolve_s4()
116 ctx.size = 0; in basic_arm_convolve_s4()
118 result = arm_convolve_wrapper_s4(&ctx, in basic_arm_convolve_s4()
[all …]
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_depthwise_conv_3x3_s8/
Dtest_arm_depthwise_conv_3x3_s8.c34 cmsis_nn_context ctx; in depthwise_kernel_3x3_arm_depthwise_conv_3x3_s8() local
73 ctx.buf = NULL; in depthwise_kernel_3x3_arm_depthwise_conv_3x3_s8()
74 ctx.size = 0; in depthwise_kernel_3x3_arm_depthwise_conv_3x3_s8()
76 arm_cmsis_nn_status result = arm_depthwise_conv_3x3_s8(&ctx, in depthwise_kernel_3x3_arm_depthwise_conv_3x3_s8()
88 if (ctx.buf) in depthwise_kernel_3x3_arm_depthwise_conv_3x3_s8()
91 memset(ctx.buf, 0, ctx.size); in depthwise_kernel_3x3_arm_depthwise_conv_3x3_s8()
92 free(ctx.buf); 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()
110 result = arm_depthwise_conv_wrapper_s8(&ctx, in depthwise_kernel_3x3_arm_depthwise_conv_3x3_s8()
[all …]
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_fully_connected_s8/
Dtest_arm_fully_connected_s8.c36 cmsis_nn_context ctx; 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()
73 int32_t *buf = ctx.buf; in fully_connected_arm_fully_connected_s8()
77 arm_cmsis_nn_status result = arm_fully_connected_s8(&ctx, in fully_connected_arm_fully_connected_s8()
89 if (ctx.buf) in fully_connected_arm_fully_connected_s8()
92 memset(ctx.buf, 0, buf_size); in fully_connected_arm_fully_connected_s8()
93 free(ctx.buf); in fully_connected_arm_fully_connected_s8()
104 cmsis_nn_context ctx; 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()
[all …]
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_convolve_1_x_n_s8/
Dtest_arm_convolve_1_x_n_s8.c40 cmsis_nn_context ctx; 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()
81 ctx.size = 0; in conv_1_x_n_1_arm_convolve_s8()
83 arm_cmsis_nn_status result = arm_convolve_1_x_n_s8(&ctx, in conv_1_x_n_1_arm_convolve_s8()
95 if (ctx.buf) 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()
98 free(ctx.buf); in conv_1_x_n_1_arm_convolve_s8()
105 ctx.buf = malloc(buf_size); in conv_1_x_n_1_arm_convolve_s8()
107 result = arm_convolve_s8(&ctx, in conv_1_x_n_1_arm_convolve_s8()
118 if (ctx.buf) in conv_1_x_n_1_arm_convolve_s8()
[all …]
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_depthwise_conv_s8/
Dtest_arm_depthwise_conv_s8.c34 cmsis_nn_context ctx; in depthwise_2_arm_depthwise_conv_s8() local
73 ctx.buf = NULL; in depthwise_2_arm_depthwise_conv_s8()
74 ctx.size = 0; in depthwise_2_arm_depthwise_conv_s8()
76 arm_cmsis_nn_status result = arm_depthwise_conv_s8(&ctx, in depthwise_2_arm_depthwise_conv_s8()
88 if (ctx.buf) in depthwise_2_arm_depthwise_conv_s8()
90 memset(ctx.buf, 0, ctx.size); in depthwise_2_arm_depthwise_conv_s8()
91 free(ctx.buf); 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()
104 result = arm_depthwise_conv_wrapper_s8(&ctx, in depthwise_2_arm_depthwise_conv_s8()
[all …]
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_fully_connected_s4/
Dtest_arm_fully_connected_s4.c37 cmsis_nn_context ctx; 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()
73 arm_cmsis_nn_status result = arm_fully_connected_s4(&ctx, in fully_connected_int4_arm_fully_connected_s4()
85 if (ctx.buf) in fully_connected_int4_arm_fully_connected_s4()
88 memset(ctx.buf, 0, buf_size); in fully_connected_int4_arm_fully_connected_s4()
89 free(ctx.buf); in fully_connected_int4_arm_fully_connected_s4()
100 cmsis_nn_context ctx; 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()
[all …]
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_convolve_s16/
Dtest_arm_convolve_s16.c44 cmsis_nn_context ctx; in int16xint8_arm_convolve_s16() local
84 ctx.buf = malloc(buf_size); in int16xint8_arm_convolve_s16()
86 result = arm_convolve_s16(&ctx, in int16xint8_arm_convolve_s16()
97 if (ctx.buf) in int16xint8_arm_convolve_s16()
100 memset(ctx.buf, 0, buf_size); in int16xint8_arm_convolve_s16()
101 free(ctx.buf); in int16xint8_arm_convolve_s16()
108 ctx.buf = malloc(buf_size); in int16xint8_arm_convolve_s16()
110 result = arm_convolve_wrapper_s16(&ctx, in int16xint8_arm_convolve_s16()
121 if (ctx.buf) in int16xint8_arm_convolve_s16()
123 memset(ctx.buf, 0, buf_size); in int16xint8_arm_convolve_s16()
[all …]
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_fully_connected_s16/
Dtest_arm_fully_connected_s16.c33 cmsis_nn_context ctx; 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()
71 arm_cmsis_nn_status result = arm_fully_connected_s16(&ctx, in fully_connected_int16_arm_fully_connected_s16()
83 if (ctx.buf) in fully_connected_int16_arm_fully_connected_s16()
86 memset(ctx.buf, 0, buf_size); in fully_connected_int16_arm_fully_connected_s16()
87 free(ctx.buf); in fully_connected_int16_arm_fully_connected_s16()
98 cmsis_nn_context ctx; 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()
[all …]
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_depthwise_conv_fast_s16/
Dtest_arm_depthwise_conv_fast_s16.c39 cmsis_nn_context ctx; 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()
82 arm_cmsis_nn_status result = arm_depthwise_conv_fast_s16(&ctx, in dw_int16xint8_fast_arm_depthwise_conv_fast_s16()
94 if (ctx.buf) 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()
98 free(ctx.buf); in dw_int16xint8_fast_arm_depthwise_conv_fast_s16()
108 ctx.buf = malloc(buf_size); in dw_int16xint8_fast_arm_depthwise_conv_fast_s16()
110 result = arm_depthwise_conv_wrapper_s16(&ctx, in dw_int16xint8_fast_arm_depthwise_conv_fast_s16()
122 if (ctx.buf) 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()
[all …]
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_grouped_convolve_s8/
Dtest_arm_grouped_convolve_s8.c35 cmsis_nn_context ctx; in grouped_conv_arm_grouped_convolve_1_s8() local
75 ctx.buf = malloc(buf_size); in grouped_conv_arm_grouped_convolve_1_s8()
76 ctx.size = 0; in grouped_conv_arm_grouped_convolve_1_s8()
78 arm_cmsis_nn_status result = arm_convolve_s8(&ctx, in grouped_conv_arm_grouped_convolve_1_s8()
90 if (ctx.buf) in grouped_conv_arm_grouped_convolve_1_s8()
93 memset(ctx.buf, 0, buf_size); in grouped_conv_arm_grouped_convolve_1_s8()
94 free(ctx.buf); in grouped_conv_arm_grouped_convolve_1_s8()
106 cmsis_nn_context ctx; in grouped_conv_arm_grouped_convolve_2_s8() local
146 ctx.buf = malloc(buf_size); in grouped_conv_arm_grouped_convolve_2_s8()
147 ctx.size = 0; in grouped_conv_arm_grouped_convolve_2_s8()
[all …]
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_depthwise_conv_s16/
Dtest_arm_depthwise_conv_s16.c32 cmsis_nn_context ctx; in dw_int16xint8_arm_depthwise_conv_s16() local
72 ctx.buf = NULL; in dw_int16xint8_arm_depthwise_conv_s16()
73 ctx.size = 0; in dw_int16xint8_arm_depthwise_conv_s16()
75 arm_cmsis_nn_status result = arm_depthwise_conv_s16(&ctx, in dw_int16xint8_arm_depthwise_conv_s16()
86 if (ctx.buf) in dw_int16xint8_arm_depthwise_conv_s16()
89 memset(ctx.buf, 0, ctx.size); in dw_int16xint8_arm_depthwise_conv_s16()
90 free(ctx.buf); in dw_int16xint8_arm_depthwise_conv_s16()
101 ctx.buf = malloc(buf_size); in dw_int16xint8_arm_depthwise_conv_s16()
103 result = arm_depthwise_conv_wrapper_s16(&ctx, in dw_int16xint8_arm_depthwise_conv_s16()
115 if (ctx.buf) in dw_int16xint8_arm_depthwise_conv_s16()
[all …]
/cmsis-nn-latest/Source/ConvolutionFunctions/
Darm_convolve_wrapper_s4.c50 arm_cmsis_nn_status arm_convolve_wrapper_s4(const cmsis_nn_context *ctx, in arm_convolve_wrapper_s4() argument
67 return arm_convolve_1x1_s4_fast(ctx, in arm_convolve_wrapper_s4()
81 return arm_convolve_1x1_s4(ctx, in arm_convolve_wrapper_s4()
97 return arm_convolve_1_x_n_s4(ctx, in arm_convolve_wrapper_s4()
111 return arm_convolve_s4(ctx, in arm_convolve_wrapper_s4()
Darm_convolve_wrapper_s8.c50 arm_cmsis_nn_status arm_convolve_wrapper_s8(const cmsis_nn_context *ctx, in arm_convolve_wrapper_s8() argument
68 return arm_convolve_1x1_s8_fast(ctx, in arm_convolve_wrapper_s8()
82 return arm_convolve_1x1_s8(ctx, in arm_convolve_wrapper_s8()
98 return arm_convolve_1_x_n_s8(ctx, in arm_convolve_wrapper_s8()
112 return arm_convolve_s8(ctx, in arm_convolve_wrapper_s8()
Darm_depthwise_conv_wrapper_s16.c50 arm_cmsis_nn_status arm_depthwise_conv_wrapper_s16(const cmsis_nn_context *ctx, in arm_depthwise_conv_wrapper_s16() argument
66 status = arm_depthwise_conv_fast_s16(ctx, in arm_depthwise_conv_wrapper_s16()
80 status = arm_depthwise_conv_s16(ctx, in arm_depthwise_conv_wrapper_s16()
Darm_depthwise_conv_wrapper_s8.c49 arm_cmsis_nn_status arm_depthwise_conv_wrapper_s8(const cmsis_nn_context *ctx, in arm_depthwise_conv_wrapper_s8() argument
69 status = arm_depthwise_conv_3x3_s8(ctx, in arm_depthwise_conv_wrapper_s8()
84 status = arm_depthwise_conv_s8_opt(ctx, in arm_depthwise_conv_wrapper_s8()
99 status = arm_depthwise_conv_s8(ctx, in arm_depthwise_conv_wrapper_s8()
Darm_depthwise_conv_wrapper_s4.c49 arm_cmsis_nn_status arm_depthwise_conv_wrapper_s4(const cmsis_nn_context *ctx, in arm_depthwise_conv_wrapper_s4() argument
65 status = arm_depthwise_conv_s4_opt(ctx, in arm_depthwise_conv_wrapper_s4()
79 status = arm_depthwise_conv_s4(ctx, in arm_depthwise_conv_wrapper_s4()
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_transpose_conv_s8/
Dtest_arm_transpose_conv_s8.c34 cmsis_nn_context ctx; 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()
84 arm_cmsis_nn_status result = arm_transpose_conv_s8(&ctx, in transpose_conv_1_arm_transpose_conv_s8()
104 if (ctx.buf) in transpose_conv_1_arm_transpose_conv_s8()
107 memset(ctx.buf, 0, buf_size); in transpose_conv_1_arm_transpose_conv_s8()
108 free(ctx.buf); in transpose_conv_1_arm_transpose_conv_s8()
120 cmsis_nn_context ctx; 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()
[all …]
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_convolve_1x1_s4_fast/
Dtest_arm_convolve_1x1_s4_fast.c37 cmsis_nn_context ctx; in kernel1x1_arm_convolve_1x1_s4_fast() local
81 ctx.buf = malloc(buf_size); in kernel1x1_arm_convolve_1x1_s4_fast()
82 ctx.size = 0; in kernel1x1_arm_convolve_1x1_s4_fast()
84 arm_cmsis_nn_status result = arm_convolve_1x1_s4_fast(&ctx, in kernel1x1_arm_convolve_1x1_s4_fast()
96 if (ctx.buf) in kernel1x1_arm_convolve_1x1_s4_fast()
99 memset(ctx.buf, 0, buf_size); in kernel1x1_arm_convolve_1x1_s4_fast()
100 free(ctx.buf); in kernel1x1_arm_convolve_1x1_s4_fast()
111 cmsis_nn_context ctx; in kernel1x1_2_arm_convolve_1x1_s4_fast() local
155 ctx.buf = malloc(buf_size); in kernel1x1_2_arm_convolve_1x1_s4_fast()
156 ctx.size = 0; in kernel1x1_2_arm_convolve_1x1_s4_fast()
[all …]
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_svdf_s8/
Dtest_arm_svdf_s8.c72 cmsis_nn_context ctx; 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()
78 int32_t *kernel_sum_buf = ctx.buf; in svdf_int8_arm_svdf_s8()
100 arm_cmsis_nn_status result = arm_svdf_s8(&ctx, in svdf_int8_arm_svdf_s8()
124 if (ctx.buf) in svdf_int8_arm_svdf_s8()
127 memset(ctx.buf, 0, buf_size); in svdf_int8_arm_svdf_s8()
128 free(ctx.buf); in svdf_int8_arm_svdf_s8()
187 cmsis_nn_context ctx; in svdf_int8_2_arm_svdf_s8() local
189 ctx.buf = malloc(buf_size); in svdf_int8_2_arm_svdf_s8()
[all …]

123