Skip to content

Commit

Permalink
Fix (stats): add return statement in state_dict
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe5 committed Jan 8, 2024
1 parent ade1036 commit 84812f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/brevitas/core/scaling/standalone.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,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 84812f4

Please sign in to comment.