Skip to content

Commit

Permalink
Merge branch 'main' into windows-cuda
Browse files Browse the repository at this point in the history
  • Loading branch information
atalman authored Jun 5, 2023
2 parents c9144c3 + a5035df commit f685927
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@
def disable_tf32():
previous = torch.backends.cudnn.allow_tf32
torch.backends.cudnn.allow_tf32 = False
yield
torch.backends.cudnn.allow_tf32 = previous
try:
yield
finally:
torch.backends.cudnn.allow_tf32 = previous


def list_model_fns(module):
Expand Down

0 comments on commit f685927

Please sign in to comment.