| 155 | } |
| 156 | |
| 157 | InternalGraphPtr InternalGraphGenerator::generate() { |
| 158 | m_input_idx = 0; |
| 159 | |
| 160 | auto new_nd = replace_graph_by_placeholder(); |
| 161 | auto igraph = std::make_shared<InternalGraph>( |
| 162 | new_nd, m_output, m_output, to_placeholder_opr_arr(m_placeholders)); |
| 163 | return expand_executor_opr(igraph); |
| 164 | } |
| 165 | |
| 166 | size_t InternalGraphGenerator::get_cnt_input_if_add(cg::OperatorNodeBase* opr) const { |
| 167 | // minus 1 first because this opr should be removed from subgraph's input |