| 250 | } |
| 251 | |
| 252 | void 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 | |
| 263 | MGB_DYN_TYPE_OBJ_FINAL_IMPL(MutableTensor); |
| 264 | MutableTensor::MutableTensor( |
nothing calls this directly
no test coverage detected