add additional tf32 opt for cudnn (#2477) [skip ci]
This commit is contained in:
@@ -78,6 +78,7 @@ def resolve_dtype(cfg):
|
|||||||
cfg.bf16 = False
|
cfg.bf16 = False
|
||||||
else:
|
else:
|
||||||
torch.backends.cuda.matmul.allow_tf32 = cfg.tf32 or False
|
torch.backends.cuda.matmul.allow_tf32 = cfg.tf32 or False
|
||||||
|
torch.backends.cudnn.allow_tf32 = cfg.tf32 or False
|
||||||
if cfg.bf16:
|
if cfg.bf16:
|
||||||
cfg.fp16 = False
|
cfg.fp16 = False
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user