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 2019/06/11 21:13:40 UTC

[GitHub] [incubator-mxnet] larroy commented on a change in pull request #15210: [WIP] Custom Operator Profiling Enhancement

larroy commented on a change in pull request #15210: [WIP] Custom Operator Profiling Enhancement
URL: https://github.com/apache/incubator-mxnet/pull/15210#discussion_r292662487
 
 

 ##########
 File path: src/engine/threaded_engine.cc
 ##########
 @@ -333,9 +333,11 @@ void ThreadedEngine::PushAsync(AsyncFn fn, Context exec_ctx,
         << device_count_;
   }
 #endif
-  ThreadedOpr *opr = NewOperator(std::move(fn), const_vars, mutable_vars, prop, opr_name, wait);
-  opr->temporary = true;
   const bool profiling = profiler_->IsProfiling(profiler::Profiler::kImperative);
+	const char* d_name = profiling ? profiler::CustomOpProfiler::Get()->GetDisplayName(opr_name) : NULL;
+	const char* display_name = d_name ? d_name : opr_name;
 
 Review comment:
   Why use a std::string if just const char*?

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


With regards,
Apache Git Services