diff --git a/debug/accuracy_tools/msprobe/pytorch/api_accuracy_checker/run_ut/run_overflow_check.py b/debug/accuracy_tools/msprobe/pytorch/api_accuracy_checker/run_ut/run_overflow_check.py index 20ec98a8e7beaec885d2b8b36e0bc5c46145a022..a2371d50379901b2747eb85b2270ac40ea29626a 100644 --- a/debug/accuracy_tools/msprobe/pytorch/api_accuracy_checker/run_ut/run_overflow_check.py +++ b/debug/accuracy_tools/msprobe/pytorch/api_accuracy_checker/run_ut/run_overflow_check.py @@ -81,11 +81,11 @@ def run_overflow_check(forward_file): except Exception as err: _, api_name, _ = api_full_name.split(Const.SEP) if "not implemented for 'Half'" in str(err): - logger.warning(f"API {api_name} not support half tensor in CPU, please add {api_name} to CONVERT_API " - f"'fp16_to_fp32' list in accuracy_tools/api_accuracy_check/common/utils.py file.") + logger.warning(f"API {api_name} not support half tensor in CPU. This API does not support overflow " + "check, so it will be skipped.") elif "expected scalar type Long" in str(err): logger.warning(f"API {api_name} not support int32 tensor in CPU, please add {api_name} to CONVERT_API " - f"'int32_to_int64' list in accuracy_tools/api_accuracy_check/common/utils.py file.") + "'int32_to_int64' list in accuracy_tools/msprobe/core/common/const.py file.") else: logger.error(f"Run {api_full_name} UT Error: %s" % str(err)) diff --git a/debug/accuracy_tools/msprobe/pytorch/api_accuracy_checker/run_ut/run_ut.py b/debug/accuracy_tools/msprobe/pytorch/api_accuracy_checker/run_ut/run_ut.py index 54371a42117c95731e996a1dc229570f279d26d7..b64b8080c2d6c94e0b8bdd27f274f6839f56f4c6 100644 --- a/debug/accuracy_tools/msprobe/pytorch/api_accuracy_checker/run_ut/run_ut.py +++ b/debug/accuracy_tools/msprobe/pytorch/api_accuracy_checker/run_ut/run_ut.py @@ -140,7 +140,7 @@ def run_api_offline(config, compare, api_name_set): except Exception as err: if "expected scalar type Long" in str(err): logger.warning(f"API {api_name} not support int32 tensor in CPU, please add {api_name} to CONVERT_API " - f"'int32_to_int64' list in accuracy_tools/api_accuracy_check/common/utils.py file.") + "'int32_to_int64' list in accuracy_tools/msprobe/core/common/const.py file.") else: logger.error(f"Run {api_full_name} UT Error: %s" % str(err)) compare_alg_results = err_column.to_column_value(CompareConst.SKIP, str(err))