Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

output_size not equal 1 #8

Closed
CCjiahao opened this issue Jul 21, 2022 · 2 comments
Closed

output_size not equal 1 #8

CCjiahao opened this issue Jul 21, 2022 · 2 comments

Comments

@CCjiahao
Copy link

output_details = interpreter.get_output_details()
output_size, output_zero_point = output_details[0]['quantization']
##### output_size != 1
# This led to me having to get real out by zooming, as follows:
out_true = out * output_size

The out_scale of the tflite model I derived from is not equal to 1, whether this has an impact at the final stage.

@2019zhou
Copy link

@mdenna-synaptics

@mdenna-synaptics
Copy link
Owner

If you can avoid this additional rescale of the output it would be better, in any case it will not work well if the output itself is quantized to 8 bits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants