eppane

Results 11 comments of eppane

> Hi, first of all, I don’t know. I’ll guess a bit. > > A direct/automatic application of full integer can be dangerous since the dynamic rance of melspectrogram magnitude...

Many thanks for the quick reply! Model structure is as follows: ``` _________________________________________________________________ Layer (type) Output Shape Param # ================================================================= input_2 (InputLayer) [(None, 1522, 1, 1)] 0 conv2d_7 (Conv2D) (None,...

I decided to try a model with simple post-training quantization, where only model weights are quantized. In this case, the code runs without problems.

Post-training quantization, i.e., just before converting the model to .tflite. See here: https://www.tensorflow.org/lite/performance/post_training_quantization#integer_only My board has 256kB RAM-memory available. Here is a code that is currently working using simple post-training...

I think I made a mistake of using the `tf.probaToClass()` -function instead of `tf.predictClass()`. I have two problems now. When I use the simple quantization, I get this error from...

Thanks for your advice! I was able to run now my model. The problem was with my full-integer quantization, I had the following parameters: ``` converter.inference_input_type = tensorflow.uint8 converter.inference_output_type =...

Thanks for the quick reply and for the tips! I updated the library, commented out the `#define __SXTB16_RORn(ARG1, ARG2) __SXTB16(__ROR(ARG1, ARG2))` from `arm.math.h`, turned the input scaling on, but the...

In TFLite Micro's hello_world example, here are the scalings: ``` // Quantize the input from floating-point to integer int8_t x_quantized = x / input->params.scale + input->params.zero_point; ``` and ``` //...

I think that TFLite Micro does not support GlobalMaxPooling, at least there is no equivalent in ```tensorflow\lite\micro\kernels\micro_ops.h``` or in https://www.tensorflow.org/lite/guide/op_select_allowlist. The model runs though on the device..

It seems that `tensorflow/lite/micro/kernels/reduce.cc` implements Global versions of poolings (https://github.com/tensorflow/tensorflow/issues/43332). So I decided to try directly with TFLite Micro, modifying the hello_world example, as follows: ``` #include #include "tensorflow/lite/micro/all_ops_resolver.h" #include...