You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/03/28 22:39:45 UTC

[GitHub] piiswrong commented on a change in pull request #10306: fix crash when profiler not enabled

piiswrong commented on a change in pull request #10306: fix crash when profiler not enabled
URL: https://github.com/apache/incubator-mxnet/pull/10306#discussion_r177910904
 
 

 ##########
 File path: src/engine/threaded_engine.h
 ##########
 @@ -398,7 +398,8 @@ class ThreadedEngine : public Engine {
   }
 
   int bulk_size() const override {
-    return profiler::Profiler::Get()->AggregateRunning() ? 0 :  BulkStatusStore::Get()->bulk_size;
+    const profiler::Profiler *prof = profiler::Profiler::Get();
 
 Review comment:
   why would profiler::get return nullptr when it's not enabled?

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services