Skip to content

Commit

Permalink
Fix issue #6
Browse files Browse the repository at this point in the history
Typo, `self.var` should be `self.running_var`
  • Loading branch information
FrancescoConti authored Apr 23, 2020
1 parent 1486960 commit 0b5186f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nemo/quant/pact.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ def reset_alpha(self, use_max=True, nb_std=5.):
if use_max:
self.alpha.data[0] = self.max.item()
else:
self.alpha.data[0] = nb_std * torch.sqrt(self.var).item()
self.alpha.data[0] = nb_std * torch.sqrt(self.running_var).item()

def get_statistics(self):
r"""Returns the statistics collected up to now.
Expand Down

0 comments on commit 0b5186f

Please sign in to comment.