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

!213 Modify profiler api comments for the docs

Merge pull request !213 from wangyue/r0.3_profiler_api_doc
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
# limitations under the License. # limitations under the License.
# ============================================================================ # ============================================================================
""" """
Profiler Module Introduction Profiler Module Introduction.
This module provides Python APIs to enable the profiling of MindSpore neural networks. This module provides Python APIs to enable the profiling of MindSpore neural networks.
Users can import the mindinsight.profiler.Profiler, initialize the Profiler object to start profiling, Users can import the mindinsight.profiler.Profiler, initialize the Profiler object to start profiling,
......
...@@ -37,16 +37,16 @@ class Profiler: ...@@ -37,16 +37,16 @@ class Profiler:
""" """
Performance profiling API. Performance profiling API.
Enable MindSpore users to profile the neural network. Enable MindSpore users to profile the performance of neural network.
Args: Args:
subgraph (str): Defines which subgraph to monitor and analyse, can be 'all', 'Default', 'Gradients'. subgraph (str): Define which subgraph to monitor and analyse, can be 'all', 'Default', 'Gradients'.
is_detail (bool): Whether to show profiling data for op_instance level, only show optype level if False. 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. is_show_op_path (bool): Whether to save the full path for each op instance.
output_path (str): Output data path. output_path (str): Output data path.
optypes_to_deal (list): Op type names, the data of which optype should be collected and analysed, 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. will deal with all op if null.
optypes_not_deal (list): Op type names, the data of which optype will not be collected and analysed. optypes_not_deal (list[str]): Op type names, the data of which optype will not be collected and analysed.
Examples: Examples:
>>> from mindinsight.profiler import Profiler >>> from mindinsight.profiler import Profiler
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册