Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe5 committed Nov 21, 2024
1 parent c6d58a5 commit 63cc19d
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 @@ -414,6 +414,7 @@ def forward(self, stats_input: Tensor, threshold: Optional[Tensor] = None) -> Te
if threshold is None:
threshold = torch.ones(1).type_as(stats_input)
if self.training:
self.init_done = False
# Threshold division handled inside the training_forward
return self.training_forward(stats_input, threshold)
else:
Expand Down

0 comments on commit 63cc19d

Please sign in to comment.