| 166 | }; |
| 167 | |
| 168 | static bool |
| 169 | check_conflicts(migraphx::module& m, migraphx::instruction_ref x, migraphx::instruction_ref y) |
| 170 | { |
| 171 | return migraphx::any_of(migraphx::iterator_for(m), [&](auto ins) { |
| 172 | if(ins->name() != "identity") |
| 173 | return false; |
| 174 | if(not migraphx::contains(ins->inputs(), x)) |
| 175 | return false; |
| 176 | if(not migraphx::contains(ins->inputs(), y)) |
| 177 | return false; |
| 178 | return true; |
| 179 | }); |
| 180 | } |
| 181 | |
| 182 | struct scheduler |
| 183 | { |
no test coverage detected