Skip to content

Commit

Permalink
rm typing cont
Browse files Browse the repository at this point in the history
  • Loading branch information
muellerzr committed Oct 22, 2024
1 parent 0757cbf commit c2e0083
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/accelerate/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def __setstate__(self, state):
self._optimizer_original_step_method = self.optimizer.step
self._optimizer_patched_step_method = patch_optimizer_step(self, self.optimizer.step)

def multiply_grads(self, constant) -> None:
def multiply_grads(self, constant):
"""
Multiplies the gradients of the parameters by a constant. Needed during gradient accumulation.
Expand Down

0 comments on commit c2e0083

Please sign in to comment.