diff --git a/debug/accuracy_tools/ptdbg_ascend/src/python/ptdbg_ascend/overflow_check/overflow_check.py b/debug/accuracy_tools/ptdbg_ascend/src/python/ptdbg_ascend/overflow_check/overflow_check.py index df605848e6c09a0008c43dfd0cc6759794e19026..94d3b9a8d03359d371520e63168e1208c6b109ab 100644 --- a/debug/accuracy_tools/ptdbg_ascend/src/python/ptdbg_ascend/overflow_check/overflow_check.py +++ b/debug/accuracy_tools/ptdbg_ascend/src/python/ptdbg_ascend/overflow_check/overflow_check.py @@ -50,6 +50,8 @@ def check_data_overflow(x): return False else: if isinstance(x, torch.Tensor) and x.numel() != 0 and x.dtype != torch.bool: + if x.is_meta: + return False if len(x.shape) == 0: tensor_max = x.cpu().detach().float().numpy().tolist() tensor_min = tensor_max