Commit 111ee132 authored by Michael Carilli's avatar Michael Carilli
Browse files

Adding control point for scale adjustment

parent d69011de
......@@ -81,7 +81,7 @@ class FusedAdam(torch.optim.Optimizer):
if hasattr(self, "_amp_stash"):
grads = self._amp_stash.grads
output_params = self._amp_stash.output_params
scale = self._amp_stash.scale
scale = self._amp_stash.scale*scale
grad_norms = self._amp_stash.grad_norms
if grads is None:
......
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