Browse Source

!456 update readme for profiler

Merge pull request !456 from yelihua/r0.6-open
tags/v0.6.0-beta
mindspore-ci-bot Gitee 5 years ago
parent
commit
8846c1d4bc
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      mindinsight/profiler/README.md

+ 3
- 3
mindinsight/profiler/README.md View File

@@ -11,11 +11,11 @@ The Profiler enables users to:


To enable profiling on MindSpore, the MindInsight Profiler apis should be added to the script: To enable profiling on MindSpore, the MindInsight Profiler apis should be added to the script:


1. Import MindInsight Profiler
1. Import the Profiler
``` ```
from mindinsight.profiler import Profiler
from mindspore.profiler import Profiler
``` ```
2. Initialize the Profiler after set context, and before the network initialization.
2. Initialize the Profiler after set context, and before the network and hccl initialization.


Example: Example:


Loading…
Cancel
Save