提交 26adc815 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!4743 Add a warning when the output path already exists.

Merge pull request !4743 from yuximiao/master
......@@ -86,6 +86,9 @@ class Profiler:
self._output_path = os.path.join(self._output_path, "profiler")
if not os.path.exists(self._output_path):
os.makedirs(self._output_path, exist_ok=True)
else:
logger.warning("The target dir already exists. "
"There may be some old profiling data, and they will be rewrote in the end.")
if self._device_target and self._device_target == "GPU":
from mindspore._c_expression import GPUProfiler
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册