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 856cb237ca7e1ce71da45938be2284c2e6133a2b..2afb901c8b1c647ea9569c5992a72b4adf08afa9 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: 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)