Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Update profiler example code (#10120)
Browse files Browse the repository at this point in the history
  • Loading branch information
kenfehling authored and szha committed Mar 20, 2018
1 parent 1b71ce1 commit 484af32
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/faq/perf.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,12 +228,12 @@ See [example/profiler](https://github.com/dmlc/mxnet/tree/master/example/profile
for complete examples of how to use the profiler in code, but briefly, the Python code looks like:

```
mx.profiler.profiler_set_config(mode='all', filename='profile_output.json')
mx.profiler.profiler_set_state('run')
mx.profiler.set_config(profile_all=True, filename='profile_output.json')
mx.profiler.set_state('run')
# Code to be profiled goes here...
mx.profiler.profiler_set_state('stop')
mx.profiler.set_state('stop')
```

The `mode` parameter can be set to
Expand Down

0 comments on commit 484af32

Please sign in to comment.