Home
last modified time | relevance | path

Searched refs:converter (Results 1 – 2 of 2) sorted by relevance

/cmsis-nn-latest/Tests/UnitTest/
Dtest_settings.py220 def convert_tensor_np(self, tensor_in, converter, *qminmax): argument
225 fw = converter(w, qminmax[0], qminmax[1])
227 fw = converter(w)
231 def convert_tensor(self, tensor_in, converter, *qminmax): argument
240 float_normal.append(converter(i, qminmax[0], qminmax[1]))
242 float_normal.append(converter(i))
466 converter = tf.lite.TFLiteConverter.from_keras_model(model)
470 converter.optimizations = [tf.lite.Optimize.DEFAULT]
471 converter.representative_dataset = representative_dataset
474 converter._experimental_full_integer_quantization_bias_type = tf.int32
[all …]
/cmsis-nn-latest/Tests/UnitTest/RefactoredTestGen/Lib/
Dtest.py157 converter = tf.lite.TFLiteConverter.from_keras_model(keras_model)
166 converter.representative_dataset = representative_dataset
167 converter.optimizations = [tf.lite.Optimize.DEFAULT]
168 converter.inference_input_type = Lib.op_utils.get_tf_dtype(dtype)
169 converter.inference_output_type = Lib.op_utils.get_tf_dtype(dtype)
172 converter.target_spec.supported_ops = [tf.lite.OpsSet.TFLITE_BUILTINS_INT8]
175 converter._experimental_full_integer_quantization_bias_type = tf.int32
176 converter.target_spec.supported_ops = [
180 tflite_model = converter.convert()