| 683 | } |
| 684 | |
| 685 | void 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 | |
| 707 | void PostExecActions::process_opr( |
| 708 | OperatorNodeBase& opr, OperatorNodeBase::ExecEnv& env) { |
no test coverage detected