Apply Code Formatter Change

This commit is contained in:
Stardust-minus
2023-09-06 15:00:48 +00:00
committed by github-actions[bot]
parent 57b408e8df
commit c80621c7ae

View File

@@ -32,10 +32,12 @@ from losses import generator_loss, discriminator_loss, feature_loss, kl_loss
from mel_processing import mel_spectrogram_torch, spec_to_mel_torch
from text.symbols import symbols
os.environ['NCCL_P2P_DISABLE'] = 1 # Avoid training problem.
os.environ["NCCL_P2P_DISABLE"] = 1 # Avoid training problem.
torch.backends.cuda.matmul.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.cudnn.allow_tf32 = (
True # If encontered training problem,please try to disable TF32.
)
torch.set_float32_matmul_precision("medium")
torch.backends.cudnn.benchmark = True
torch.backends.cuda.sdp_kernel("flash")
torch.backends.cuda.enable_flash_sdp(True)