Browse Source

!10637 Add a parameter validate of minddata pipeline module

From: @gzhcv
Reviewed-by: @wuxuejian,@liucunwei
Signed-off-by: @wuxuejian
tags/v1.2.0-rc1
mindspore-ci-bot Gitee 5 years ago
parent
commit
9528c28917
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      mindspore/profiler/parser/minddata_pipeline_parser.py

+ 4
- 0
mindspore/profiler/parser/minddata_pipeline_parser.py View File

@@ -160,6 +160,10 @@ class MinddataPipelineParser:

op_id_info_cache = {}
for item in op_info:
if not item:
raise ProfilerRawFileException(
'The content of minddata pipeline raw file is wrong.'
)
op_id_info_cache[item.get('op_id')] = item

with open(self._save_path, 'w') as save_file:


Loading…
Cancel
Save