From f5684d8f40ece3fac8554d6f5cd45573574e326c Mon Sep 17 00:00:00 2001 From: wangyue01 Date: Mon, 1 Jun 2020 15:55:56 +0800 Subject: [PATCH] Fix profiler api parameter type bug. --- mindinsight/profiler/profiling.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mindinsight/profiler/profiling.py b/mindinsight/profiler/profiling.py index 73d3cd3..2a1f3c0 100644 --- a/mindinsight/profiler/profiling.py +++ b/mindinsight/profiler/profiling.py @@ -44,9 +44,10 @@ class Profiler: is_detail (bool): Whether to show profiling data for op_instance level, only show optype level if False. is_show_op_path (bool): Whether to save the full path for each op instance. output_path (str): Output data path. - optypes_to_deal (list[str]): Op type names, the data of which optype should be collected and analysed, - will deal with all op if null. - optypes_not_deal (list[str]): Op type names, the data of which optype will not be collected and analysed. + optypes_to_deal (str): Op type names, the data of which optype should be collected and analysed, + will deal with all op if null; Different op types should be seperated by comma. + optypes_not_deal (str): Op type names, the data of which optype will not be collected and analysed; + Different op types should be seperated by comma. Examples: >>> from mindinsight.profiler import Profiler -- GitLab