Skip to content

Commit

Permalink
Fix QKeras state tracking within model_save_quantized_weights method.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 685827025
Change-Id: If2dd2521401528d2ced406a7d281a9c5d996a49f
  • Loading branch information
Akshaya Purohit authored and copybara-github committed Oct 14, 2024
1 parent 1308e5d commit b137743
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions qkeras/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,6 @@ def model_save_quantized_weights(model, filename=None):
# Weights store the weight in the format that software inference uses.
weights.append(weight)

has_sign = False
has_scale = False
if quantizer:
if isinstance(quantizer, six.string_types):
q_name = quantizer
Expand Down

0 comments on commit b137743

Please sign in to comment.