| 181 | } |
| 182 | |
| 183 | void eliminate_contiguous::apply(module& m) const |
| 184 | { |
| 185 | // Skip contiguous from splits first |
| 186 | remove_contiguous(op_name, m, [](auto ins) { |
| 187 | if(ins->name() != "slice") |
| 188 | return true; |
| 189 | return (ins->inputs().front()->outputs().size() == 1); |
| 190 | }); |
| 191 | remove_contiguous(op_name, m, [](auto) { return true; }); |
| 192 | } |
| 193 | |
| 194 | } // namespace MIGRAPHX_INLINE_NS |
| 195 | } // namespace migraphx |