| 1094 | } |
| 1095 | |
| 1096 | void module::add_params(const std::vector<instruction_ref>& inputs, |
| 1097 | std::unordered_map<instruction_ref, instruction_ref>* map_ins, |
| 1098 | const std::function<shape(const shape&)>& shape_transform) |
| 1099 | { |
| 1100 | std::unordered_map<instruction_ref, instruction_ref> default_map_ins; |
| 1101 | if(map_ins == nullptr) |
| 1102 | map_ins = &default_map_ins; |
| 1103 | insert_params(*this, inputs, *map_ins, shape_transform); |
| 1104 | } |
| 1105 | |
| 1106 | std::vector<instruction_ref> |
| 1107 | module::fuse(const std::vector<instruction_ref>& inss, |