diff --git a/mindspore/profiler/parser/memory_usage_parser.py b/mindspore/profiler/parser/memory_usage_parser.py index 413180542b..0c4f64a761 100644 --- a/mindspore/profiler/parser/memory_usage_parser.py +++ b/mindspore/profiler/parser/memory_usage_parser.py @@ -61,9 +61,9 @@ class MemoryUsageParser: file_path = validate_and_normalize_path(file_path) if not os.path.exists(file_path): - msg = 'The memory file does not exist!' - logger.error(msg) - raise ProfilerFileNotFoundException(msg=msg) + logger.warning('The memory file does not exist! Please ignore the warning ' + 'if you are running heterogeneous training.') + raise ProfilerFileNotFoundException(msg=file_path) return file_path