Skip to content

Commit

Permalink
update model_save_quantized_weights to include QDenseBN
Browse files Browse the repository at this point in the history
  • Loading branch information
julesmuhizi authored Apr 2, 2022
1 parent 6a6599f commit 71207ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qkeras/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def model_save_quantized_weights(model, filename=None):
signs = []

if any(isinstance(layer, t) for t in [
QConv2DBatchnorm, QDepthwiseConv2DBatchnorm]):
QConv2DBatchnorm, QDenseBatchnorm, QDepthwiseConv2DBatchnorm]):
qs = layer.get_quantizers()
ws = layer.get_folded_weights()
elif any(isinstance(layer, t) for t in [QSimpleRNN, QLSTM, QGRU]):
Expand Down

0 comments on commit 71207ce

Please sign in to comment.