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

Function TEST_CASE

test/eliminate_zero_point_test.cpp:98–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98TEST_CASE(quantizelinear_ins_no_zp)
99{
100 migraphx::shape s{migraphx::shape::float_type, {100, 100}};
101 migraphx::module m1;
102 {
103 auto x = m1.add_parameter("x", s);
104 auto scale = m1.add_literal(0.5f);
105 auto q_ins = add_quantize_op(m1, "quantizelinear", x, scale);
106 m1.add_return({q_ins});
107 }
108 migraphx::module m2 = m1;
109 run_pass(m1);
110 EXPECT(m1 == m2);
111}
112
113TEST_CASE(quantizelinear_ins_with_zp)
114{

Callers

nothing calls this directly

Calls 12

add_common_opFunction · 0.85
add_parameterMethod · 0.80
lensMethod · 0.80
add_quantize_opFunction · 0.70
run_passFunction · 0.70
add_scale_mulFunction · 0.70
init_zero_pointFunction · 0.70
make_opFunction · 0.50
add_literalMethod · 0.45
add_returnMethod · 0.45
add_instructionMethod · 0.45
get_shapeMethod · 0.45

Tested by

no test coverage detected