MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / do_execute

Method do_execute

imperative/src/impl/opr_utility.cpp:252–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250}
251
252void NopCallback::do_execute(ExecEnv& env) {
253 auto cn = output(0)->comp_node();
254 auto runner = [this, cn] {
255 owner_graph()->event().signal_inplace<cg::event::BeforeKernel>(this, cn);
256 cn.activate();
257 m_callback();
258 owner_graph()->event().signal_inplace<cg::event::AfterKernel>(this, cn);
259 };
260 env.dispatch_on_comp_node(cn, runner);
261}
262
263MGB_DYN_TYPE_OBJ_FINAL_IMPL(MutableTensor);
264MutableTensor::MutableTensor(

Callers

nothing calls this directly

Calls 3

comp_nodeMethod · 0.45
activateMethod · 0.45
dispatch_on_comp_nodeMethod · 0.45

Tested by

no test coverage detected