Skip to content

Commit

Permalink
Update thunder/executors/torchex.py
Browse files Browse the repository at this point in the history
  • Loading branch information
t-vi authored Oct 31, 2024
1 parent f3a0857 commit 4252d4a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions thunder/executors/torchex.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ def no_autocast(fn):
prev_cpu = torch.is_autocast_cpu_enabled()
prev = torch.is_autocast_enabled()

@wraps(fn)
def no_autocast_fn(*args, **kwargs):
try:
set_autocast_enabled("cpu", False)
Expand Down

0 comments on commit 4252d4a

Please sign in to comment.