-
Notifications
You must be signed in to change notification settings - Fork 85
Add DoReFa Weight Quantizer #651
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
Merged
lgeiger
merged 38 commits into
larq:master
from
Joschua-Conrad:Feature_DoReFaWeightQuantizer
May 5, 2021
Merged
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
a441234
Added source code and docstring of new kernel quantizer.
Joschua-Conrad 425dcfa
Fixed two typos
Joschua-Conrad 1056c44
Added unit test for backwards compat alias of DoReFa kernel quantizer
Joschua-Conrad 6215854
Added test for metrics of DoReFaKernel quantizer
Joschua-Conrad 7569bae
Fixed bug in gradient computation of new kernel quantizer
Joschua-Conrad 20c0956
Added test for gradient of new kernel quantizer
Joschua-Conrad 0d3b04d
Explicitly using tf.math now
Joschua-Conrad a43ba40
Added quantization test for new kernel quantizer
Joschua-Conrad 168ccfc
Removed checks for 0. in calls of tf.math.tanh
Joschua-Conrad 2ce76f3
Compat alias name of new kernel quantizer added to __all__ quantizers.
Joschua-Conrad 7dd5149
Fixed typo and one bad indent
Joschua-Conrad 4ab5622
I hope this pleases the almightly linter. Only comments or blank line…
Joschua-Conrad 58f07d4
black passes now its check after rewriting files with black
Joschua-Conrad deeb716
Remove alias: unittest
Joschua-Conrad 57ba9c2
Remove alias: Definition
Joschua-Conrad b9549bc
Remove alias: Quantizerlist
Joschua-Conrad 376597e
Improve readbility in weight preprocessing definition
Joschua-Conrad 426c64e
Improved code readability
Joschua-Conrad b4a6e29
Divisions by zero are now skipped by using tf.math.divide_no_nan
Joschua-Conrad d545af6
Apply suggested changes on docstring syntax
Joschua-Conrad a26aba7
Fix docstring typo
Joschua-Conrad 6791ad3
Remove linefeed
Joschua-Conrad 9b85bc2
Move scale factor into division
Joschua-Conrad 82df95f
Kernel quantizer now tested for multiple bitwidths.
Joschua-Conrad 26a6119
Moved kernel quantizer logic and comments into activation quantizer
Joschua-Conrad fe00e6c
Moved docstrings from kernel to generic DoReFa quantizer and removed …
Joschua-Conrad 924509e
Made old unittests pass again
Joschua-Conrad ad92f23
Added mode attribute to get_config
Joschua-Conrad a80acbd
Unified DoReFa acitvation and weight quantization test
Joschua-Conrad 2bca107
Also merged test routines for gradients of DoReFa activation and weig…
Joschua-Conrad 50f83fc
Apply suggestions from code review
Joschua-Conrad 363c60c
Renamed kernel to weights
Joschua-Conrad b3fbc42
Added tests for both error messages regarding DoReFa quantizer mode
Joschua-Conrad ef76f89
Mode error messages now list available modes.
Joschua-Conrad b4bfd47
Added metrics test case for DoReFa quantizer in weights mode
Joschua-Conrad 6b87b2a
Made black happy
Joschua-Conrad 1b4d22a
Fixed unittest import order
Joschua-Conrad 507cd97
Apply suggestions from code review
lgeiger File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.