!23182 Raise error information for the case that the Profiler output path was not exists.

Merge pull request !23182 from casgj/r1.3-patch
This commit is contained in:
i-robot 2021-09-14 06:45:14 +00:00 committed by Gitee
commit a21f471716
1 changed files with 4 additions and 2 deletions

View File

@ -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