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

Method perform

src/core/impl/graph/operator_node.cpp:685–705  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

683}
684
685void PostExecActions::perform() {
686 bool enable = true;
687 MGB_IF_COND_EXEC(enable = m_mask ? m_mask->enabled() : true);
688
689 for (auto&& i : m_items) {
690 if (enable) {
691#if !__DEPLOY_ON_XP_SP2__
692 VarSanityCheck::check_var_after_exec(i.var, *i.recv_info);
693#endif
694
695 if (i.shape_sync_hdl)
696 i.shape_sync_hdl->sync_from_var();
697 if (i.value_sync_hdl)
698 i.value_sync_hdl->sync_from_var();
699 }
700
701 if (i.need_mem_mgr) {
702 i.need_mem_mgr->on_var_node_device_comp_finish(i.var, enable);
703 }
704 }
705}
706
707void PostExecActions::process_opr(
708 OperatorNodeBase& opr, OperatorNodeBase::ExecEnv& env) {

Callers 1

process_oprMethod · 0.45

Calls 3

sync_from_varMethod · 0.80
enabledMethod · 0.45

Tested by

no test coverage detected