Update train_ms.py

This commit is contained in:
Stardust·减
2023-09-05 00:56:32 +08:00
committed by GitHub
parent 82105b1cd7
commit 4a1c09bf31

View File

@@ -38,7 +38,7 @@ from text.symbols import symbols
torch.backends.cudnn.benchmark = True
torch.backends.cuda.matmul.allow_tf32 = True
torch.backends.cudnn.allow_tf32 = True
torch.backends.cudnn.allow_tf32 = True # If encontered training problem,please try to disable TF32.
torch.set_float32_matmul_precision('medium')
torch.backends.cuda.sdp_kernel("flash")
torch.backends.cuda.enable_flash_sdp(True)