Zha0q1 commented on a change in pull request #15403: Updating profiler tutorial 
to include new custom operator profiling
URL: https://github.com/apache/incubator-mxnet/pull/15403#discussion_r298817353
 
 

 ##########
 File path: docs/tutorials/python/profiler.md
 ##########
 @@ -206,6 +206,15 @@ Let's zoom in to check the time taken by operators
 
 The above picture visualizes the sequence in which the operators were executed 
and the time taken by each operator.
 
+### Profiling Custom Operators
+Should the existing NDArray operators fail to meet all your model's needs, 
MXNet supports [Custom 
Operators](https://mxnet.incubator.apache.org/versions/master/tutorials/gluon/customop.html)
 that you can define in Python. In `forward()` and `backward()` of a custom 
operator, there are two kinds of code: "pure Python" code (NumPy operators 
included) and "sub-operators" (NDArray operators called within `forward()` and 
`backward()`). With that said, MXNet can profile the execution time of both 
kinds without additional setup. Specifically, the MXNet profiler will break a 
single custom operator call into a pure Python event and several sub-operator 
events if there are any. Furthermore, all of those events will have a prefix in 
their names, which is, conveniently, the name of the custom operator you called.
+
+![Custom Operator Profiling 
Screenshot](https://cwiki.apache.org/confluence/download/attachments/118172065/image2019-6-14_15-23-42.png?version=1&modificationDate=1560551022000&api=v2)
 
 Review comment:
   looks like that PR has been merged

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to