forked from Xilinx/brevitas
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add config file based on env variables. Add env variable to ignore missing expected missing keys when retraining. Add env variable to force reinit weight quantization when loading a pretrained model. Add scaling override for custom scaling implementation. Add const scaling based on He init. Add affine stats based scaling, i.e. stats with scale and bias parameters. Extend parameter from stats scaling to properly handle per-channel init. Extend stats based scaling support to activations. Add optional hard minimum for scale factors, to avoid NaN during training. Add bias quantization with user defined bit width. Add binary activations support. Add attributes to retrieve int_weight and scale factors to quantized layers. Fix scaling in quantized avg pool. Start documenting WeightQuantProxy and extending its docs to QuantConv2d and QuantLinear. Various minor refactoring.
- Loading branch information
Showing
115 changed files
with
33,162 additions
and
414 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import os | ||
import docrep | ||
|
||
docstrings = docrep.DocstringProcessor() | ||
|
||
IGNORE_MISSING_KEYS = bool(os.environ.get('BREVITAS_IGNORE_MISSING_KEYS', False)) | ||
REINIT_WEIGHT_QUANT_ON_LOAD = bool(os.environ.get('BREVITAS_REINIT_WEIGHT_QUANT_ON_LOAD', True)) |
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
Oops, something went wrong.