From dfb535c05a183701aef88bb587db567b4d08caed Mon Sep 17 00:00:00 2001 From: gameofdimension <8111583+gameofdimension@user.noreply.gitee.com> Date: Thu, 23 May 2024 07:45:08 +0000 Subject: [PATCH 1/3] =?UTF-8?q?update=20debug/accuracy=5Ftools/api=5Faccur?= =?UTF-8?q?acy=5Fchecker/run=5Fut/run=5Fut.py.=20=E6=8F=90=E9=AB=98?= =?UTF-8?q?=E5=8D=B7=E7=A7=AF=E7=AE=97=E5=AD=90=E7=9A=84=E7=B2=BE=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: gameofdimension <8111583+gameofdimension@user.noreply.gitee.com> --- debug/accuracy_tools/api_accuracy_checker/run_ut/run_ut.py | 1 + 1 file changed, 1 insertion(+) diff --git a/debug/accuracy_tools/api_accuracy_checker/run_ut/run_ut.py b/debug/accuracy_tools/api_accuracy_checker/run_ut/run_ut.py index 856cb237c..2afb901c8 100644 --- a/debug/accuracy_tools/api_accuracy_checker/run_ut/run_ut.py +++ b/debug/accuracy_tools/api_accuracy_checker/run_ut/run_ut.py @@ -394,6 +394,7 @@ def _run_ut(parser=None): def run_ut_command(args): if not is_gpu: torch.npu.set_compile_mode(jit_compile=args.jit_compile) + torch.npu.conv.allow_hf32 = False used_device = current_device + ":" + str(args.device_id[0]) try: if is_gpu: -- Gitee From ec393c533f75b75f3751344d487ebb77bb0bdbb7 Mon Sep 17 00:00:00 2001 From: gameofdimension <8111583+gameofdimension@user.noreply.gitee.com> Date: Thu, 23 May 2024 09:46:49 +0000 Subject: [PATCH 2/3] update debug/accuracy_tools/ptdbg_ascend/src/python/ptdbg_ascend/common/utils.py. Signed-off-by: gameofdimension <8111583+gameofdimension@user.noreply.gitee.com> --- .../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 3c2e5f02d..aae0d4197 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 From cb0be4f571c03094880db5b61d62a322b94e5548 Mon Sep 17 00:00:00 2001 From: gameofdimension Date: Fri, 24 May 2024 16:21:37 +0000 Subject: [PATCH 3/3] =?UTF-8?q?Revert=20"update=20debug/accuracy=5Ftools/p?= =?UTF-8?q?tdbg=5Fascend/src/python/ptdbg=5Fascend/commo=E2=80=A6"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit ec393c533f75b75f3751344d487ebb77bb0bdbb7. --- .../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 aae0d4197..3c2e5f02d 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.enabled = False + torch.backends.cudnn.enable = False torch.backends.cudnn.benchmark = False else: torch_npu.npu.manual_seed_all(seed) -- Gitee