This repository has been archived by the owner on Sep 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Add model export for QAT #3458
Merged
Merged
Add model export for QAT #3458
Changes from 7 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
b282c6a
add model export for QAT
linbinskn 72d72bb
delete redundant code
linbinskn d549fcd
add some annotation
linbinskn 62d8049
add export_model() function for Dorefa and BNN
linbinskn 83e0d74
register buffer of weight bit in dorefa
linbinskn 6d7a133
resolve problems mentioned in comments
linbinskn 92b78f3
pass the pipeline
linbinskn 14ea0a3
add ut for export_model()
linbinskn 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 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so this quantizer does not calibrate activation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In our current implementation of Dorefa, it does not quantize activation, so we don't need to calibrate activation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you double check the paper, does the paper mention how to calibrate activation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After discussion, we reach an agreement that the refactor of
Dorefa
should starts after survey and it will be done in another PR. What' s more, ut related toexport_model()
has been added into code.