Home
last modified time | relevance | path

Searched refs:data (Results 1 – 16 of 16) sorted by relevance

/cmsis-nn-latest/Source/ActivationFunctions/
Darm_relu_q15.c50 void arm_relu_q15(int16_t *data, uint16_t size) in arm_relu_q15() argument
57 int16_t *input = data; in arm_relu_q15()
58 int16_t *output = data; in arm_relu_q15()
91 if (data[i] < 0) in arm_relu_q15()
92 data[i] = 0; in arm_relu_q15()
Darm_relu_q7.c50 void arm_relu_q7(int8_t *data, uint16_t size) in arm_relu_q7() argument
57 int8_t *input = data; in arm_relu_q7()
58 int8_t *output = data; in arm_relu_q7()
96 if (data[i] < 0) in arm_relu_q7()
97 data[i] = 0; in arm_relu_q7()
Darm_relu6_s8.c50 void arm_relu6_s8(int8_t *data, uint16_t size) in arm_relu6_s8() argument
56 int32_t ip = data[i]; in arm_relu6_s8()
59 data[i] = MIN(ip, 6); in arm_relu6_s8()
/cmsis-nn-latest/Tests/UnitTest/RefactoredTestGen/Lib/
Dtest.py78 data = op_type.generate_data_tflite(fpaths["tflite"], params)
81 data = op_type.generate_data_json(shapes, params)
84 replacements = {**params, **data.params, **data.scales}
85 …convert_json_to_tflite(json_template_fpath, json_output_fpath, data.tensors, replacements, args.sc…
90 params.update(data.params)
93 for name, scale in data.effective_scales.items():
104 data.tensors["input"] = input_tensor.numpy()
107 data.tensors["output"] = invoke_tflite(fpaths["tflite"], input_tensor)
109 data.tensors["output"] = invoke_tflite_runtime(fpaths["tflite"], input_tensor)
111 data.tensors["output"] = invoke_tflite_micro(fpaths["tflite"], input_tensor)
[all …]
/cmsis-nn-latest/Tests/UnitTest/
Dtest_settings.py210 def save_multiple_dim_array_in_txt(self, file, data): argument
211 header = ','.join(map(str, data.shape))
212 np.savetxt(file, data.reshape(-1, data.shape[-1]), header=header, delimiter=',')
217 data = np.genfromtxt(f, delimiter=',').reshape(shape)
218 return data.astype(np.float32)
258data = tf.Variable(tf.random.uniform(dims, minval=minrange, maxval=maxrange, dtype=tf.dtypes.int64…
259 data = tf.cast(data, dtype=tf.float32)
261data = tf.Variable(tf.random.uniform(dims, minval=minrange, maxval=maxrange, dtype=tf.dtypes.float…
262 data = np.around(data.numpy(), decimals)
263 data = tf.convert_to_tensor(data)
[all …]
DREADME.md31 ### Generating new test data
33 For generating new test data, the following packages are needed.
40 For generating new data, the python3 packages tensorflow, numpy and packaging are required. Most un…
115 ## Generating new test data
116 **NOTE:** The data generation scrips are being reworked, see *Refactoring of generate_test_data*
118 Generating new test data is done with the following script. Use the -h flag to get more info.
125 The script use a concept of test data sets, i.e. it need a test set data name as input. It will the…
126 When adding a new test data set, new c files should be added or existing c files should be updated …
149 Test data generation is in progress of incrementally moving over to the cleaned up scripts placed i…
156 The previous generate_test_data will remain as the main data generator until all functionality is r…
[all …]
Dmodel_extractor.py173 data = in_file.read()
174 data = json.loads(data)
175 tensors = data['subgraphs'][0]['tensors']
176 operators = data['subgraphs'][0]['operators']
177 operator_codes = data['operator_codes']
178 buffers = data['buffers']
Dconv_settings.py177 …def quantize_float_data(self, data=None, quantization_bit_range=8, quantization_type="affine", tf_… argument
178 if data is not None:
180 data = data.numpy()
181 data_max = np.amax(data)
182 data_min = np.amin(data)
202 quantized_data = [(x // scale) + zero_point for x in data]
Dunittest_targets.py111 data = json.load(read_file)
113 while ('core' not in data[target_name]):
115 target_name = data[target_name]['inherits'][0]
116 core = data[target_name]['core']
/cmsis-nn-latest/Tests/UnitTest/Corstone-300/
Dlinker.ld170 /* Add each additional data section here */
193 .data : AT (__etext)
197 *(.data)
198 *(.data.*)
201 /* preinit data */
207 /* init data */
215 /* finit data */
223 /* All data end */
229 * Secondary data section, optional
231 * Remember to add each additional data section
[all …]
/cmsis-nn-latest/Source/ConvolutionFunctions/
Darm_convolve_s16.c203 const int64_t *bias_s64 = (const int64_t *)bias_data->data; in arm_convolve_s16()
204 const int32_t *bias_s32 = (const int32_t *)bias_data->data; in arm_convolve_s16()
Darm_nn_mat_mult_kernel_s16.c61 const int64_t *bias_s64 = (const int64_t *)bias_data->data; in arm_nn_mat_mult_kernel_s16()
62 const int32_t *bias_s32 = (const int32_t *)bias_data->data; in arm_nn_mat_mult_kernel_s16()
/cmsis-nn-latest/Include/
Darm_nn_types.h77 const void *data; /**< Pointer to bias data */ member
Darm_nnfunctions.h1837 void arm_relu_q7(int8_t *data, uint16_t size);
1844 void arm_relu6_s8(int8_t *data, uint16_t size);
1851 void arm_relu_q15(int16_t *data, uint16_t size);
/cmsis-nn-latest/Source/NNSupportFunctions/
Darm_nn_mat_mult_nt_t_s16.c66 const int64_t *bias_s64 = (const int64_t *)bias_data->data; in arm_nn_mat_mult_nt_t_s16()
67 const int32_t *bias_s32 = (const int32_t *)bias_data->data; in arm_nn_mat_mult_nt_t_s16()
/cmsis-nn-latest/Documentation/Doxygen/
Dnn.dxy.in461 # with only public data fields or simple typedef fields will be shown inline in
1122 # Note that doxygen will use the data processed and written to standard output
1944 # search data is written to a file for indexing by an external tool. With the