Skip to content

Commit

Permalink
Fix (scaling/standalone): add return statement in state_dict (#792)
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe5 authored Jan 9, 2024
1 parent ade1036 commit 3595988
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 3595988

Please sign in to comment.