From 1f6075643b5b4df3d84797233c6a49c258fd917b Mon Sep 17 00:00:00 2001 From: gameofdimension Date: Fri, 24 May 2024 16:25:41 +0000 Subject: [PATCH] update debug/accuracy_tools/ptdbg_ascend/src/python/ptdbg_ascend/common/utils.py. Signed-off-by: gameofdimension --- .../ptdbg_ascend/src/python/ptdbg_ascend/common/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 3c2e5f02d9b..aae0d4197c1 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) -- Gitee