Zha0q1 commented on a change in pull request #15210: [WIP] Custom Operator
Profiling Enhancement
URL: https://github.com/apache/incubator-mxnet/pull/15210#discussion_r292290811
##########
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;
Review comment:
Yeah, it's probably because the tab size is set to different values locally
and on here
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services