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

Function init_zero_point

test/eliminate_zero_point_test.cpp:90–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90static migraphx::instruction_ref init_zero_point(migraphx::module& m,
91 migraphx::instruction_ref q_ins)
92{
93 auto zp = m.add_literal(migraphx::literal{migraphx::shape{q_ins->get_shape().type()}, {0}});
94 return m.add_instruction(
95 migraphx::make_op("multibroadcast", {{"out_lens", q_ins->get_shape().lens()}}), zp);
96}
97
98TEST_CASE(quantizelinear_ins_no_zp)
99{

Callers 1

TEST_CASEFunction · 0.70

Calls 6

lensMethod · 0.80
make_opFunction · 0.50
add_literalMethod · 0.45
typeMethod · 0.45
get_shapeMethod · 0.45
add_instructionMethod · 0.45

Tested by

no test coverage detected