Commit 825cf27c authored by Thor Johnsen's avatar Thor Johnsen
Browse files

Bug fix

parent 841e5ee1
......@@ -118,7 +118,7 @@ class FusedAdam(torch.optim.Optimizer):
self._step(grads, output_params, scale, grad_norms, False, True)
return loss
def _step(self, grads, output_params, scale., grad_norms, check_overflow, undo):
def _step(self, grads, output_params, scale, grad_norms, check_overflow, undo):
if check_overflow:
modified_params = []
......@@ -280,5 +280,3 @@ class FusedAdam(torch.optim.Optimizer):
if check_overflow:
for i, out_p in enumerate(modified_params):
self.strided_check_finite(out_p, stride=out_p.numel(), start=0, end=out_p.numel(), clear=True if i == 0 else False)
return loss
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment