-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for FQ-QD and QD-ID equivalence
FQ-QD reaches perfect equivalence when deactivating approx that hit it (requantization, batch-norm quantizaiton). QD-ID is still not perfect, due to tiny numerical errors (order of 10^-7) propagating down and causing larger errors at activation. CI seems to hang at a certain print... remove it Try reducing input size for Mobilenet FQ-QD-ID GitHub CI tests Add a 0.1% tolerance in results check Add a 0.5% tolerance in results check Reduce QD-ID misalignment a bit further The further misalignment seems very difficult to remove, as it is related to fundamental issues in using floats for computation. E.g., A' = (A * EPS) / EPS will cause very small differences between A' and A that propagate along the network. A good future solution may pass through usage of native INT types for QD and ID (at the expense of having higher divergence between FQ and QD). Bump version to 0.0.4
- Loading branch information
1 parent
7d0f40b
commit 447f3e2
Showing
5 changed files
with
89 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters