You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by zh...@apache.org on 2018/03/20 20:40:09 UTC

[incubator-mxnet] branch master updated: Update profiler example code (#10120)

This is an automated email from the ASF dual-hosted git repository.

zhasheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/master by this push:
     new 484af32  Update profiler example code (#10120)
484af32 is described below

commit 484af3286aa01dec04ef5756f32ceba0c5aed13f
Author: Ken Fehling <ke...@gmail.com>
AuthorDate: Tue Mar 20 16:40:02 2018 -0400

    Update profiler example code (#10120)
---
 docs/faq/perf.md | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/docs/faq/perf.md b/docs/faq/perf.md
index e021f1e..b5d73f6 100644
--- a/docs/faq/perf.md
+++ b/docs/faq/perf.md
@@ -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

-- 
To stop receiving notification emails like this one, please contact
zhasheng@apache.org.