torch.backends.cudnn.enabled = False # ---->引起问题的代码行
torch.backends.cudnn.benchmark = False #禁用benchmark,保证可复现
# torch.backends.cudnn.benchmark = True #恢复benchmark,提升效果
torch.backends.cudnn.enabled = False # ---->引起问题的代码行
torch.backends.cudnn.benchmark = False #禁用benchmark,保证可复现
# torch.backends.cudnn.benchmark = True #恢复benchmark,提升效果