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/18 21:10:46 UTC

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

Zha0q1 commented on a change in pull request #15210: Custom Operator Profiling Enhancement
URL: https://github.com/apache/incubator-mxnet/pull/15210#discussion_r295029975
 
 

 ##########
 File path: src/engine/naive_engine.cc
 ##########
 @@ -159,7 +160,11 @@ class NaiveEngine final : public Engine {
     this->req_completed_ = false;
     profiler::Profiler *profiler = profiler::Profiler::Get();
     NaiveOpr *opr = nullptr;
+    // Try to get a new name. Only not null for sub-operators of a custom operator
     const bool profiling = opr_name && profiler->IsProfiling(profiler::Profiler::kImperative);
+    const char* d_name = profiling && opr_name ?
+                         profiler::CustomOpProfiler::Get()->GenerateDisplayName(opr_name) : nullptr;
+    const char* display_name = (d_name ? d_name : opr_name);
     if (profiling) {
       opr = NewOperator(exec_fun, const_vars, mutable_vars,
 
 Review comment:
   That's a great question. I tried to look it up and I also could not find where the deletion took place

----------------------------------------------------------------
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