Skip to content

Commit

Permalink
Make context manager set original state correctly (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
2015aroras authored Dec 20, 2024
1 parent 9e0992b commit 3505660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/olmo_core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -643,4 +643,4 @@ def cuda_sync_debug_mode(debug_mode: Union[int, str]):
yield
finally:
if current_mode is not None:
torch.cuda.set_sync_debug_mode(debug_mode)
torch.cuda.set_sync_debug_mode(current_mode)

0 comments on commit 3505660

Please sign in to comment.