Skip to content

Commit

Permalink
typo of "scalar" instead of "scaler" (#3116)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyzhaozh authored Oct 7, 2024
1 parent d4d6b6e commit bcc13c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/accelerate/accelerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ def __init__(
elif is_mlu_available():
self.scaler = torch.mlu.amp.GradScaler(**kwargs)
elif is_musa_available():
self.scalar = torch.musa.amp.GradScaler(**kwargs)
self.scaler = torch.musa.amp.GradScaler(**kwargs)
elif is_npu_available():
self.scaler = torch.npu.amp.GradScaler(**kwargs)
elif is_xpu_available():
Expand Down

0 comments on commit bcc13c0

Please sign in to comment.