[cudnn] set False to cudnn benchmark by default (#1063)

pull/1066/head
Frank Lee 2022-06-03 17:58:06 +08:00 committed by GitHub
parent df9dcbbff6
commit 3d10be33bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -270,7 +270,7 @@ def initialize(model: nn.Module,
ranks=[0])
# cudnn
cudnn_benchmark = config.get('cudnn_benchmark', True)
cudnn_benchmark = config.get('cudnn_benchmark', False)
cudnn_deterministic = config.get('cudnn_deterministic', False)
torch.backends.cudnn.benchmark = cudnn_benchmark
torch.backends.cudnn.deterministic = cudnn_deterministic