Skip to content

Commit

Permalink
fix autocast
Browse files Browse the repository at this point in the history
  • Loading branch information
oahzxl committed Dec 5, 2023
1 parent 317f3bd commit 18ef3b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion colossalai/booster/mixed_precision/fp16_torch.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def __init__(self, module: nn.Module):
super().__init__(module)

def forward(self, *args, **kwargs):
with get_accelerator().autocast()():
with get_accelerator().autocast():
return self.module(*args, **kwargs)


Expand Down

0 comments on commit 18ef3b7

Please sign in to comment.