From 95d265644788b5adc4fd548413d07c01c2f778f3 Mon Sep 17 00:00:00 2001 From: zhangyunshu Date: Fri, 12 Mar 2021 10:53:23 +0800 Subject: [PATCH] profiler: optimize the logging for device memory profiling --- mindspore/profiler/parser/memory_usage_parser.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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