/cmsis-nn-latest/Source/ConvolutionFunctions/ |
D | arm_depthwise_conv_get_buffer_sizes_s16.c | 77 int32_t size = 0; in arm_depthwise_conv_wrapper_s16_get_buffer_size() local 81 size = arm_depthwise_conv_fast_s16_get_buffer_size(input_dims, filter_dims); in arm_depthwise_conv_wrapper_s16_get_buffer_size() 84 return size; in arm_depthwise_conv_wrapper_s16_get_buffer_size() 94 int32_t size = 0; in arm_depthwise_conv_wrapper_s16_get_buffer_size_mve() local 98 size = arm_depthwise_conv_fast_s16_get_buffer_size_mve(input_dims, filter_dims); in arm_depthwise_conv_wrapper_s16_get_buffer_size_mve() 101 return size; in arm_depthwise_conv_wrapper_s16_get_buffer_size_mve() 111 int32_t size = 0; in arm_depthwise_conv_wrapper_s16_get_buffer_size_dsp() local 115 size = arm_depthwise_conv_fast_s16_get_buffer_size_dsp(input_dims, filter_dims); in arm_depthwise_conv_wrapper_s16_get_buffer_size_dsp() 118 return size; in arm_depthwise_conv_wrapper_s16_get_buffer_size_dsp()
|
D | arm_depthwise_conv_get_buffer_sizes_s8.c | 72 int32_t size = 0; in arm_depthwise_conv_wrapper_s8_get_buffer_size() local 81 return size; in arm_depthwise_conv_wrapper_s8_get_buffer_size() 84 size = arm_depthwise_conv_s8_opt_get_buffer_size(input_dims, filter_dims); in arm_depthwise_conv_wrapper_s8_get_buffer_size() 87 return size; in arm_depthwise_conv_wrapper_s8_get_buffer_size() 95 int32_t size = 0; in arm_depthwise_conv_wrapper_s8_get_buffer_size_dsp() local 103 return size; in arm_depthwise_conv_wrapper_s8_get_buffer_size_dsp() 105 size = arm_depthwise_conv_s8_opt_get_buffer_size_dsp(input_dims, filter_dims); in arm_depthwise_conv_wrapper_s8_get_buffer_size_dsp() 108 return size; in arm_depthwise_conv_wrapper_s8_get_buffer_size_dsp() 116 int32_t size = 0; in arm_depthwise_conv_wrapper_s8_get_buffer_size_mve() local 121 size = arm_depthwise_conv_s8_opt_get_buffer_size_mve(input_dims, filter_dims); in arm_depthwise_conv_wrapper_s8_get_buffer_size_mve() [all …]
|
D | arm_depthwise_conv_get_buffer_sizes_s4.c | 57 int32_t size = 0; in arm_depthwise_conv_wrapper_s4_get_buffer_size() local 62 size = arm_depthwise_conv_s4_opt_get_buffer_size(input_dims, filter_dims); in arm_depthwise_conv_wrapper_s4_get_buffer_size() 65 return size; in arm_depthwise_conv_wrapper_s4_get_buffer_size() 81 int32_t size = 0; in arm_depthwise_conv_wrapper_s4_get_buffer_size_mve() local 86 size = arm_depthwise_conv_s8_opt_get_buffer_size_mve(input_dims, filter_dims); in arm_depthwise_conv_wrapper_s4_get_buffer_size_mve() 89 return size; in arm_depthwise_conv_wrapper_s4_get_buffer_size_mve()
|
D | arm_transpose_conv_get_buffer_sizes_s8.c | 54 const int32_t size = in arm_transpose_conv_s8_get_buffer_size() local 56 return size; in arm_transpose_conv_s8_get_buffer_size()
|
/cmsis-nn-latest/Tests/UnitTest/TestCases/Utils/ |
D | utils.h | 22 static inline const int32_t *get_bias_address(const int32_t *bias, int32_t size) in get_bias_address() argument 25 for (int i = 0; i < size; i++) 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 39 for (int i = 0; i < size; i++) in get_bias_s64_address()
|
D | validate.h | 24 static inline int validate(int8_t *act, const int8_t *ref, int size) in validate() argument 30 for (int i = 0; i < size; ++i) in validate() 49 static inline int validate_s16(int16_t *act, const int16_t *ref, int size) in validate_s16() argument 55 for (int i = 0; i < size; ++i) in validate_s16()
|
/cmsis-nn-latest/Source/ActivationFunctions/ |
D | arm_relu_q15.c | 50 void arm_relu_q15(int16_t *data, uint16_t size) in arm_relu_q15() argument 56 uint16_t i = size >> 1; in arm_relu_q15() 77 if (size & 0x1) in arm_relu_q15() 89 for (i = 0; i < size; i++) in arm_relu_q15()
|
D | arm_relu_q7.c | 50 void arm_relu_q7(int8_t *data, uint16_t size) in arm_relu_q7() argument 56 uint16_t i = size >> 2; in arm_relu_q7() 78 i = size & 0x3; in arm_relu_q7() 94 for (i = 0; i < size; i++) in arm_relu_q7()
|
D | arm_relu6_s8.c | 50 void arm_relu6_s8(int8_t *data, uint16_t size) in arm_relu6_s8() argument 54 for (i = 0; i < size; i++) in arm_relu6_s8()
|
D | arm_nn_activation_s16.c | 53 const int32_t size, in arm_nn_activation_s16() argument 77 for (int i = 0; i < size; ++i, input++, output++) in arm_nn_activation_s16()
|
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_depthwise_conv_s4_opt/ |
D | test_arm_depthwise_conv_s4_opt.c | 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() 94 memset(ctx.buf, 0, ctx.size); in depthwise_int4_1_arm_depthwise_conv_s4_opt() 100 ctx.buf = malloc(ctx.size); in depthwise_int4_1_arm_depthwise_conv_s4_opt() 115 memset(ctx.buf, 0, ctx.size); in depthwise_int4_1_arm_depthwise_conv_s4_opt() 122 ctx.size = 0; in depthwise_int4_1_arm_depthwise_conv_s4_opt() 123 ctx.buf = malloc(ctx.size); in depthwise_int4_1_arm_depthwise_conv_s4_opt() 139 memset(ctx.buf, 0, ctx.size); in depthwise_int4_1_arm_depthwise_conv_s4_opt() 190 ctx.size = arm_depthwise_conv_s4_opt_get_buffer_size(&input_dims, &filter_dims); in depthwise_int4_2_arm_depthwise_conv_s4_opt() [all …]
|
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_depthwise_conv_s4/ |
D | test_arm_depthwise_conv_s4.c | 75 …ctx.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() 95 memset(ctx.buf, 0, ctx.size); in depthwise_int4_generic_arm_depthwise_conv_s4() 102 ctx.buf = malloc(ctx.size); in depthwise_int4_generic_arm_depthwise_conv_s4() 117 memset(ctx.buf, 0, ctx.size); in depthwise_int4_generic_arm_depthwise_conv_s4() 168 …ctx.size = arm_depthwise_conv_wrapper_s4_get_buffer_size(&dw_conv_params, &input_dims, &filter_dim… in depthwise_int4_generic_2_arm_depthwise_conv_s4() 169 TEST_ASSERT_TRUE(ctx.size == 0); in depthwise_int4_generic_2_arm_depthwise_conv_s4() 171 ctx.buf = malloc(ctx.size); in depthwise_int4_generic_2_arm_depthwise_conv_s4() 188 memset(ctx.buf, 0, ctx.size); in depthwise_int4_generic_2_arm_depthwise_conv_s4() [all …]
|
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_avgpool_s8/ |
D | test_arm_avgpool_s8.c | 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() 70 memset(ctx.buf, 0, ctx.size); in avgpooling_arm_avgpool_s8() 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() 116 memset(ctx.buf, 0, ctx.size); in avgpooling_1_arm_avgpool_s8() 154 ctx.size = arm_avgpool_s8_get_buffer_size(AVGPOOLING_2_OUTPUT_W, AVGPOOLING_2_IN_CH); in avgpooling_2_arm_avgpool_s8() 155 ctx.buf = malloc(ctx.size); in avgpooling_2_arm_avgpool_s8() 162 memset(ctx.buf, 0, ctx.size); in avgpooling_2_arm_avgpool_s8() 200 ctx.size = arm_avgpool_s8_get_buffer_size(AVGPOOLING_3_OUTPUT_W, AVGPOOLING_3_IN_CH); in avgpooling_3_arm_avgpool_s8() [all …]
|
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_avgpool_s16/ |
D | test_arm_avgpool_s16.c | 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() 68 memset(ctx.buf, 0, ctx.size); in avgpooling_int16_arm_avgpool_s16() 106 … ctx.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() 114 memset(ctx.buf, 0, ctx.size); in avgpooling_int16_1_arm_avgpool_s16() 152 … ctx.size = arm_avgpool_s16_get_buffer_size(AVGPOOLING_INT16_2_OUTPUT_W, AVGPOOLING_INT16_2_IN_CH); in avgpooling_int16_2_arm_avgpool_s16() 153 ctx.buf = malloc(ctx.size); in avgpooling_int16_2_arm_avgpool_s16() 160 memset(ctx.buf, 0, ctx.size); in avgpooling_int16_2_arm_avgpool_s16() 198 … ctx.size = arm_avgpool_s16_get_buffer_size(AVGPOOLING_INT16_3_OUTPUT_W, AVGPOOLING_INT16_3_IN_CH); in avgpooling_int16_3_arm_avgpool_s16() [all …]
|
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_depthwise_conv_s8_opt/ |
D | test_arm_depthwise_conv_s8_opt.c | 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() 100 memset(ctx.buf, 0, ctx.size); in basic_arm_depthwise_conv_s8_opt() 109 TEST_ASSERT_EQUAL(wrapper_buf_size, ctx.size); in basic_arm_depthwise_conv_s8_opt() 177 ctx.size = arm_depthwise_conv_s8_opt_get_buffer_size(&input_dims, &filter_dims); in depthwise_eq_in_out_ch_arm_depthwise_conv_s8_opt() 180 TEST_ASSERT_TRUE(ctx.size > 0); in depthwise_eq_in_out_ch_arm_depthwise_conv_s8_opt() 182 TEST_ASSERT_EQUAL(ctx.size, 0); in depthwise_eq_in_out_ch_arm_depthwise_conv_s8_opt() 185 ctx.buf = malloc(ctx.size); in depthwise_eq_in_out_ch_arm_depthwise_conv_s8_opt() [all …]
|
/cmsis-nn-latest/Tests/UnitTest/RefactoredTestGen/Lib/ |
D | op_lstm.py | 173 …tensors["input_gate_hidden_weights"] = np.random.randint(minval, maxval, size=shapes["hidden_weigh… 174 …tensors["forget_gate_hidden_weights"] = np.random.randint(minval, maxval, size=shapes["hidden_weig… 175 …tensors["cell_gate_hidden_weights"] = np.random.randint(minval, maxval, size=shapes["hidden_weight… 176 …tensors["output_gate_hidden_weights"] = np.random.randint(minval, maxval, size=shapes["hidden_weig… 177 …tensors["input_gate_input_weights"] = np.random.randint(minval, maxval, size=shapes["input_weights… 178 …tensors["forget_gate_input_weights"] = np.random.randint(minval, maxval, size=shapes["input_weight… 179 …tensors["cell_gate_input_weights"] = np.random.randint(minval, maxval, size=shapes["input_weights"… 180 …tensors["output_gate_input_weights"] = np.random.randint(minval, maxval, size=shapes["input_weight… 184 tensors["input_gate_bias"] = np.random.randint(minval, maxval, size=shapes["bias"]) 185 tensors["forget_gate_bias"] = np.random.randint(minval, maxval, size=shapes["bias"]) [all …]
|
D | op_fully_connected.py | 82 weights = np.random.randint(minval, maxval, size=shapes["weight_shape"]) 84 uneven = weights.size % 2 88 temp = np.reshape(weights, (weights.size // 2, 2)).astype(np.uint8) 93 tensors["input_bias"] = np.random.randint(minval, maxval, size=shapes["bias_shape"])
|
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_transpose_conv_s8/ |
D | test_arm_transpose_conv_s8.c | 60 output_ctx.size = output_dims.w * output_dims.h * output_dims.c * sizeof(int32_t); in transpose_conv_1_arm_transpose_conv_s8() 61 output_ctx.buf = malloc(output_ctx.size); in transpose_conv_1_arm_transpose_conv_s8() 82 ctx.size = buf_size; in transpose_conv_1_arm_transpose_conv_s8() 100 memset(output_ctx.buf, 0, output_ctx.size); in transpose_conv_1_arm_transpose_conv_s8() 146 output_ctx.size = output_dims.w * output_dims.h * output_dims.c * sizeof(int32_t); in transpose_conv_2_arm_transpose_conv_s8() 147 output_ctx.buf = malloc(output_ctx.size); in transpose_conv_2_arm_transpose_conv_s8() 168 ctx.size = buf_size; in transpose_conv_2_arm_transpose_conv_s8() 186 memset(output_ctx.buf, 0, output_ctx.size); in transpose_conv_2_arm_transpose_conv_s8() 231 output_ctx.size = output_dims.w * output_dims.h * output_dims.c * sizeof(int32_t); in transpose_conv_3_arm_transpose_conv_s8() 232 output_ctx.buf = malloc(output_ctx.size); in transpose_conv_3_arm_transpose_conv_s8() [all …]
|
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_depthwise_conv_s16/ |
D | test_arm_depthwise_conv_s16.c | 73 ctx.size = 0; in dw_int16xint8_arm_depthwise_conv_s16() 89 memset(ctx.buf, 0, ctx.size); in dw_int16xint8_arm_depthwise_conv_s16() 170 ctx.size = 0; in dw_int16xint8_dilation_arm_depthwise_conv_s16() 186 memset(ctx.buf, 0, ctx.size); in dw_int16xint8_dilation_arm_depthwise_conv_s16() 267 ctx.size = 0; in dw_int16xint8_mult4_arm_depthwise_conv_s16() 283 memset(ctx.buf, 0, ctx.size); in dw_int16xint8_mult4_arm_depthwise_conv_s16() 344 int32_t size = in arm_depthwise_conv_wrapper_s16_buffer() local 348 TEST_ASSERT_TRUE(size > 0); in arm_depthwise_conv_wrapper_s16_buffer() 350 TEST_ASSERT_TRUE(size == 0); in arm_depthwise_conv_wrapper_s16_buffer() 355 …size = arm_depthwise_conv_wrapper_s16_get_buffer_size(&dw_conv_params, &input_dims, &filter_dims, … in arm_depthwise_conv_wrapper_s16_buffer() [all …]
|
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_depthwise_conv_s8/ |
D | test_arm_depthwise_conv_s8.c | 74 ctx.size = 0; in depthwise_2_arm_depthwise_conv_s8() 90 memset(ctx.buf, 0, ctx.size); in depthwise_2_arm_depthwise_conv_s8() 102 ctx.size = buf_size; in depthwise_2_arm_depthwise_conv_s8() 170 ctx.size = 0; in depthwise_mult_batches_arm_depthwise_conv_s8() 186 memset(ctx.buf, 0, ctx.size); in depthwise_mult_batches_arm_depthwise_conv_s8() 198 ctx.size = buf_size; in depthwise_mult_batches_arm_depthwise_conv_s8() 265 ctx.size = 0; in depthwise_null_bias_1_arm_depthwise_conv_s8() 281 memset(ctx.buf, 0, ctx.size); in depthwise_null_bias_1_arm_depthwise_conv_s8() 293 ctx.size = buf_size; in depthwise_null_bias_1_arm_depthwise_conv_s8() 361 ctx.size = 0; in depthwise_dilation_arm_depthwise_conv_s8() [all …]
|
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_depthwise_conv_3x3_s8/ |
D | test_arm_depthwise_conv_3x3_s8.c | 74 ctx.size = 0; 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() 108 ctx.size = buf_size; in depthwise_kernel_3x3_arm_depthwise_conv_3x3_s8() 176 ctx.size = 0; in depthwise_kernel_3x3_arm_depthwise_conv_3x3_1_s8() 192 memset(ctx.buf, 0, ctx.size); in depthwise_kernel_3x3_arm_depthwise_conv_3x3_1_s8() 209 ctx.size = buf_size; in depthwise_kernel_3x3_arm_depthwise_conv_3x3_1_s8() 277 ctx.size = 0; in depthwise_kernel_3x3_null_bias_arm_depthwise_conv_3x3_null_bias_s8() 293 memset(ctx.buf, 0, ctx.size); in depthwise_kernel_3x3_null_bias_arm_depthwise_conv_3x3_null_bias_s8() 311 ctx.size = buf_size; in depthwise_kernel_3x3_null_bias_arm_depthwise_conv_3x3_null_bias_s8() 379 ctx.size = 0; in stride2pad1_arm_depthwise_conv_3x3_s8() [all …]
|
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_ds_cnn_l_s8/ |
D | test_arm_ds_cnn_l_s8.c | 68 …int32_t size = arm_convolve_wrapper_s8_get_buffer_size(&conv_params, &input_dims, &filter_dims, &o… in ds_cnn_l_s8_get_buffer_size() local 70 max_buffer = size > max_buffer ? size : max_buffer; in ds_cnn_l_s8_get_buffer_size() 98 …size = arm_depthwise_conv_wrapper_s8_get_buffer_size(&dw_conv_params, &input_dims, &filter_dims, &… in ds_cnn_l_s8_get_buffer_size() 100 max_buffer = size > max_buffer ? size : max_buffer; in ds_cnn_l_s8_get_buffer_size() 120 …size = arm_depthwise_conv_wrapper_s8_get_buffer_size(&dw_conv_params, &input_dims, &filter_dims, &… in ds_cnn_l_s8_get_buffer_size() 122 max_buffer = size > max_buffer ? size : max_buffer; in ds_cnn_l_s8_get_buffer_size() 134 ctx.size = ds_cnn_l_s8_get_buffer_size(); in ds_cnn_l_s8_inference() 135 ctx.buf = malloc(ctx.size); in ds_cnn_l_s8_inference()
|
/cmsis-nn-latest/Documentation/Doxygen/style_template/ |
D | extra_stylesheet.css | 29 --toc-font-size: 14px; 30 --toc-header-font-size: 15px; 119 --nav-font-size-level1: 13px; 120 --nav-font-size-level2: 10px; 121 --nav-font-size-level3: 9px; 296 --nav-font-size-level1: 13px; 297 --nav-font-size-level2: 10px; 298 --nav-font-size-level3: 9px; 388 font-size: 16px; 395 font-size: 0; [all …]
|
/cmsis-nn-latest/Tests/UnitTest/TestCases/test_arm_ds_cnn_s_s8/ |
D | test_arm_ds_cnn_s_s8.c | 70 …int32_t size = arm_convolve_wrapper_s8_get_buffer_size(&conv_params, &input_dims, &filter_dims, &o… in ds_cnn_s_s8_get_buffer_size() local 72 max_buffer = size > max_buffer ? size : max_buffer; in ds_cnn_s_s8_get_buffer_size() 100 …size = arm_depthwise_conv_wrapper_s8_get_buffer_size(&dw_conv_params, &input_dims, &filter_dims, &… in ds_cnn_s_s8_get_buffer_size() 102 max_buffer = size > max_buffer ? size : max_buffer; in ds_cnn_s_s8_get_buffer_size() 115 ctx.size = ds_cnn_s_s8_get_buffer_size(); in ds_cnn_s_s8_inference() 116 ctx.buf = malloc(ctx.size); in ds_cnn_s_s8_inference()
|
/cmsis-nn-latest/Tests/UnitTest/ |
D | fully_connected_settings.py | 180 weights_size = weights.numpy().size 215 weights_size = weights.numpy().size * 2 236 weights_size = weights.numpy().size 264 if weights_size != interpreter.get_tensor(filter_layer['index']).size or \ 265 … (self.generate_bias and biases.numpy().size != interpreter.get_tensor(bias_layer['index']).size):
|