jinhuang415 commented on issue #10504: Can MXNet operator profiling work well 
using gluon model?
URL: 
https://github.com/apache/incubator-mxnet/issues/10504#issuecomment-380691945
 
 
   @rahul003  thanks for the help, it works, we need first to enable profiler 
aggregate_stats to True and then use dumps() will work.
   
   ```
   mx.profiler.set_config(...<other options>..., aggregate_stats=True)
   mx.profiler.set_state('run')
   
   <.. application code here ...>
   
   mx.profiler.set_state('stop')
   print(mx.profiler.dumps())
   ```
   
   But I found the operator counter is not very accurate, I used the simple 
gluon model (see above gluon model code), but all operator counters are doubled 
of actual count (For example, above gluon model only has 2 convolution OPs but 
the output stats gave 4, the same with other OPs). Looks like an issue here.

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


With regards,
Apache Git Services

Reply via email to