| 862 | } |
| 863 | |
| 864 | GraphExecutable::ExecEnv* ComputingGraphImpl::current_exec_env() { |
| 865 | if (auto ret = eager_eval_manager().exec_env()) { |
| 866 | return ret; |
| 867 | } |
| 868 | if (m_current_comp_seq) { |
| 869 | return &static_cast<ComputingSequence*>(m_current_comp_seq)->exec_env(); |
| 870 | } |
| 871 | return nullptr; |
| 872 | } |
| 873 | |
| 874 | Maybe<size_t> ComputingGraphImpl::opr_step_num_in_cur_comp_seq(OperatorNodeBase* opr) { |
| 875 | mgb_assert(m_current_comp_seq && opr->owner_graph() == this); |