Skip to content

Commit

Permalink
update utils.py for support QDenseBN quant model save
Browse files Browse the repository at this point in the history
  • Loading branch information
julesmuhizi authored Apr 2, 2022
1 parent 71207ce commit 93690e1
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 @@ -198,7 +198,7 @@ def model_save_quantized_weights(model, filename=None):
saved_weights[layer.name]["signs"] = signs

if not any(isinstance(layer, t) for t in [
QConv2DBatchnorm, QDepthwiseConv2DBatchnorm]):
QConv2DBatchnorm, QDenseBatchnorm, QDepthwiseConv2DBatchnorm]):
layer.set_weights(weights)
else:
print(layer.name, " conv and batchnorm weights cannot be seperately"
Expand Down

0 comments on commit 93690e1

Please sign in to comment.