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

change input to INT8 after converting to tflite #264

Closed
xyzxinyizhang opened this issue Oct 26, 2023 · 2 comments
Closed

change input to INT8 after converting to tflite #264

xyzxinyizhang opened this issue Oct 26, 2023 · 2 comments
Labels
question Further information is requested

Comments

@xyzxinyizhang
Copy link

I use tinynn converter to convert a quantized pytorch model to tflite. The pytorch model is trained with input in range -0.5-0.5 which is preprocess by (x/255-0.5), while the device can onlly take INT8 as input. If I set the pytorch model input quant scale to 1 and zero point to 0, does the conversion, feed tflite model with input range 0~255, the converted tflite model can not get correct result when feeding tflite model INT8 input. Any step is missing? Thanks for the help!

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

No branches or pull requests

2 participants