diff --git a/debug/accuracy_tools/ptdbg_ascend/src/python/ptdbg_ascend/common/utils.py b/debug/accuracy_tools/ptdbg_ascend/src/python/ptdbg_ascend/common/utils.py index 3c2e5f02d9b3cb4f93e7885c75a4f4c7078aa76c..aae0d4197c1e990ff9d143011e096cfba2eb592b 100644 --- a/debug/accuracy_tools/ptdbg_ascend/src/python/ptdbg_ascend/common/utils.py +++ b/debug/accuracy_tools/ptdbg_ascend/src/python/ptdbg_ascend/common/utils.py @@ -652,7 +652,7 @@ def seed_all(seed=1234, mode=False): torch.cuda.manual_seed_all(seed) torch.cuda.manual_seed(seed) torch.backends.cudnn.deterministic = True - torch.backends.cudnn.enable = False + torch.backends.cudnn.enabled = False torch.backends.cudnn.benchmark = False else: torch_npu.npu.manual_seed_all(seed)