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

Inconsistency of CMSIS-NN Quantization Method(Q-format) with ARM Documentation #116

Closed
42bPhD opened this issue Mar 4, 2024 · 2 comments

Comments

@42bPhD
Copy link

42bPhD commented Mar 4, 2024

Hello.

I am currently in the process of developing using the Q-Format (Qm.n) for quantization. However, upon reviewing the revision history, I noticed that starting from version 4.1.0, the q-format approach is no longer being followed. My current approach aligns with the methods outlined in the following ARM documentation links:

While TensorFlow Lite for Microcontrollers employs Zero Point and Scale Factor for quantization, which necessitates additional memory and floating-point operations, it appears that Q-format based quantization would be more suitable for Cortex-M processors due to these constraints.

Could you kindly provide a clear explanation for the necessity of this change? The absence of discussion regarding its impact on speed and accuracy has left me somewhat perplexed. Any insight into the rationale behind this decision would be greatly appreciated, as it would aid in understanding the best practices for quantization within the context of TensorFlow Lite for Microcontrollers and CMSIS-NN.

Thank you for your time and consideration.

@JonatanAntoni JonatanAntoni transferred this issue from ARM-software/CMSIS_5 Mar 4, 2024
@JonatanAntoni
Copy link
Member

Hi @LEE-SEON-WOO, please recognise I have transferred your question to the new home for CMSIS-NN. This dups #115, hence I close it right away.

@42bPhD
Copy link
Author

42bPhD commented Mar 4, 2024

Hello. @JonatanAntoni Thank you for your attention.

Hi @LEE-SEON-WOO, please recognise I have transferred your question to the new home for CMSIS-NN. This dups #115, hence I close it right away.

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

2 participants