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

Function init_zero_point

test/simplify_qdq_test.cpp:57–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57static migraphx::instruction_ref init_zero_point(migraphx::module& m,
58 migraphx::instruction_ref q_ins)
59{
60 auto zp = m.add_literal(migraphx::literal{migraphx::shape{q_ins->get_shape().type()}, {0}});
61 return m.add_instruction(
62 migraphx::make_op("multibroadcast", {{"out_lens", q_ins->get_shape().lens()}}), zp);
63}
64
65TEST_CASE(remove_qdq)
66{

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