| 487 | } |
| 488 | |
| 489 | bool is_same_scale_zero(instruction_ref a, instruction_ref b) |
| 490 | { |
| 491 | if(a->inputs().size() != b->inputs().size()) |
| 492 | return false; |
| 493 | if(not is_same_value(a->inputs().at(1), b->inputs().at(1))) |
| 494 | return false; |
| 495 | if(a->inputs().size() == 2) |
| 496 | return true; |
| 497 | return is_same_value(a->inputs().at(2), b->inputs().at(2)); |
| 498 | } |
| 499 | |
| 500 | // When an unpack instruction is inserted, its original input must be an int4/uint4. |
| 501 | // Therefore check for an unpack_int4 operator -- while ignoring out shape related ops. |
no test coverage detected