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/11/02 18:12:21 UTC

[GitHub] [incubator-mxnet] ChaiBapchya commented on a change in pull request #16700: [Profiler] Make the trace name unique

ChaiBapchya commented on a change in pull request #16700: [Profiler] Make the trace name unique
URL: https://github.com/apache/incubator-mxnet/pull/16700#discussion_r341820507
 
 

 ##########
 File path: src/imperative/imperative_utils.h
 ##########
 @@ -575,12 +581,12 @@ inline void PushOperator(const OpStatePtr& state,
           [=](RunContext rctx) {
             run(rctx, engine::CallbackOnComplete());
           }, ctx, read_vars, write_vars, FnProperty::kNormal,
-          0, op->name.c_str());
+          0, *iter != "" ? iter->c_str() : op->name.c_str()); // huhanpeng: modified for profiling
     } else {
       CHECK(exec_type == ExecType::kAsync);
       Engine::Get()->PushAsync(
           run, ctx, read_vars, write_vars, FnProperty::kAsync,
-          0, op->name.c_str());
+          0, *iter != "" ? iter->c_str() : op->name.c_str()); // huhanpeng: modified for profiling
 
 Review comment:
   Yes definitely add your name here - https://github.com/apache/incubator-mxnet/blob/master/CONTRIBUTORS.md

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