MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / is_same_scale_zero

Function is_same_scale_zero

src/simplify_qdq.cpp:489–498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

487}
488
489bool 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.

Callers 1

applyMethod · 0.85

Calls 4

is_same_valueFunction · 0.85
atMethod · 0.80
sizeMethod · 0.45
inputsMethod · 0.45

Tested by

no test coverage detected