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

!166 fix the aicpu profiling file does not exist thrown the exception

Merge pull request !166 from 治愈系潇洒哥/master
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
""" """
The parser for AI CPU preprocess data. The parser for AI CPU preprocess data.
""" """
import os
from tabulate import tabulate from tabulate import tabulate
...@@ -50,7 +51,7 @@ class DataPreProcessParser: ...@@ -50,7 +51,7 @@ class DataPreProcessParser:
def execute(self): def execute(self):
"""Execute the parser, get result data, and write it to the output file.""" """Execute the parser, get result data, and write it to the output file."""
if self._source_file_name is None: if not os.path.exists(self._source_file_name):
logger.info("Did not find the aicpu profiling source file") logger.info("Did not find the aicpu profiling source file")
return return
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册