From cf393fe8f53871104bd1f7f5b78232a7e7e81c62 Mon Sep 17 00:00:00 2001 From: zhangyihui Date: Mon, 7 Sep 2020 21:21:58 +0800 Subject: [PATCH] Modifying the mindspore.profiler documentation --- mindspore/profiler/__init__.py | 4 ++-- mindspore/profiler/profiling.py | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/mindspore/profiler/__init__.py b/mindspore/profiler/__init__.py index a7dfc2f53c..5c67de0a93 100644 --- a/mindspore/profiler/__init__.py +++ b/mindspore/profiler/__init__.py @@ -18,8 +18,8 @@ Profiler Module Introduction. This module provides Python APIs to enable the profiling of MindSpore neural networks. Users can import the mindspore.profiler.Profiler, initialize the Profiler object to start profiling, and use Profiler.analyse() to stop profiling and analyse the results. -To visualize the profiling results, users can open mindspore Web, find the corresponding run -and click the profile link. +To visualize the profiling results, users can open MindSpore Web, find the corresponding 'run' +button/option and click the profile link. Now, Profiler supports the AICore operator analysis. """ from mindspore.profiler.profiling import Profiler diff --git a/mindspore/profiler/profiling.py b/mindspore/profiler/profiling.py index 21d56b0888..44351a7390 100644 --- a/mindspore/profiler/profiling.py +++ b/mindspore/profiler/profiling.py @@ -49,15 +49,15 @@ class Profiler: """ Performance profiling API. - Enable MindSpore users to profile the performance of neural network. - Profiler support Ascend and GPU, both of them are used in the same way, + This API enables MindSpore users to profile the performance of neural network. + Profiler supports Ascend and GPU, both of them are used in the same way, but only output_path in args works on GPU. Args: output_path (str): Output data path. - optypes_not_deal (str): (Ascend only)Op type names, the data of which optype will not be collected and analysed; - Different op types should be seperated by comma. - job_id (str): (Ascend only)The directory where the parsed profiling files are located; + optypes_not_deal (str): (Ascend only) Op type names, determine the data of which optype should be collected + and analysed,will deal with all op if null; Different op types should be separated by comma. + ascend_job_id (str): (Ascend only) The directory where the profiling files to be parsed are located; This parameter is used to support offline parsing. Examples: