Skip to content

Commit

Permalink
feat: allow tf32 on cudnn
Browse files Browse the repository at this point in the history
  • Loading branch information
beniz committed Dec 10, 2024
1 parent f727847 commit 367cd91
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions train.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@ def launch_training(opt):

if opt.with_tf32:
torch.backends.cuda.matmul.allow_tf32 = True
torch.backends.cudnn.allow_tf32 = True

opt.use_cuda = torch.cuda.is_available() and opt.gpu_ids and opt.gpu_ids[0] >= 0
if opt.use_cuda:
Expand Down

0 comments on commit 367cd91

Please sign in to comment.