From fe56a764b8db8998422dd5b81f4de1bfb8ce849d Mon Sep 17 00:00:00 2001 From: casgj Date: Thu, 9 Sep 2021 09:13:59 +0000 Subject: [PATCH] update mindspore/profiler/profiling.py. Raise error information for the case that the Profiler output path was not exists. --- mindspore/profiler/profiling.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mindspore/profiler/profiling.py b/mindspore/profiler/profiling.py index cf18a18cb6f..6f608849992 100644 --- a/mindspore/profiler/profiling.py +++ b/mindspore/profiler/profiling.py @@ -517,8 +517,10 @@ class Profiler: path, training_device_id, self._dev_id) if not job_id: - msg = "Fail to get profiling job, please check whether job dir was generated, " \ - "or may be the device id from job dir dismatch the device_id in current process." + msg = "Fail to get profiling job, output path is {}, " \ + "please check whether job dir in output path was generated, " \ + "or may be the device id from job dir dismatch the " \ + "device_id in current process.".format(self._output_path) raise RuntimeError(msg) return job_id