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 2019/07/19 22:57:46 UTC

[incubator-mxnet] branch master updated: Update profiler.md (#15477)

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 d14fa69  Update profiler.md (#15477)
d14fa69 is described below

commit d14fa692b075bc70c58d8e5ad2bd8d442f7449b9
Author: yifeim <ym...@yma.io>
AuthorDate: Fri Jul 19 15:57:16 2019 -0700

    Update profiler.md (#15477)
    
    Add one line "dump all results to log file before download" to the main example. Otherwise, it is likely that a user may download partially-written and broken files.
---
 docs/tutorials/python/profiler.md | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/docs/tutorials/python/profiler.md b/docs/tutorials/python/profiler.md
index f2da628..5be6bf8 100644
--- a/docs/tutorials/python/profiler.md
+++ b/docs/tutorials/python/profiler.md
@@ -154,6 +154,8 @@ run_training_iteration(*next(itr))
 mx.nd.waitall()
 # Ask the profiler to stop recording
 profiler.set_state('stop')
+# Dump all results to log file before download
+profiler.dump()
 ```
 
 Between running and stopping the profiler, you can also pause and resume the profiler using `profiler.pause()` and `profiler.resume()` respectively to profile only parts of the code you want to profile.