| 167 | } |
| 168 | |
| 169 | static std::size_t get_reduce_size(const_module_ref rm) |
| 170 | { |
| 171 | auto ins = std::find_if(rm->begin(), rm->end(), &is_reduce); |
| 172 | assert(ins != rm->end()); |
| 173 | return ins->inputs().front()->get_shape().elements() / ins->get_shape().elements(); |
| 174 | } |
| 175 | |
| 176 | void split_reduce::apply(module_pass_manager& mpm) const |
| 177 | { |