Skip to content

Commit

Permalink
Fix (core/zero_point): add return in state_dict (#910)
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe5 authored Mar 18, 2024
1 parent 1a396fe commit bb4feb2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/brevitas/core/zero_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ def state_dict(self, destination=None, prefix='', keep_vars=False):
# Avoid saving the init value
if not self.init_done:
del output_dict[prefix + 'value']
return output_dict

def _load_from_state_dict(
self, state_dict, prefix, local_metadata, strict, missing_keys, unexpected_keys,
Expand Down

0 comments on commit bb4feb2

Please sign in to comment.