Browse Source

fix the data don't have the session issue

tags/v0.5.0-beta
root miaoyanming 5 years ago
parent
commit
82c69f81cf
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      mindinsight/profiler/parser/aicpu_data_parser.py

+ 2
- 1
mindinsight/profiler/parser/aicpu_data_parser.py View File

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




Loading…
Cancel
Save