Skip to content

Commit 71207ce

Browse files
authored
update model_save_quantized_weights to include QDenseBN
1 parent 6a6599f commit 71207ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qkeras/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def model_save_quantized_weights(model, filename=None):
138138
signs = []
139139

140140
if any(isinstance(layer, t) for t in [
141-
QConv2DBatchnorm, QDepthwiseConv2DBatchnorm]):
141+
QConv2DBatchnorm, QDenseBatchnorm, QDepthwiseConv2DBatchnorm]):
142142
qs = layer.get_quantizers()
143143
ws = layer.get_folded_weights()
144144
elif any(isinstance(layer, t) for t in [QSimpleRNN, QLSTM, QGRU]):

0 commit comments

Comments
 (0)