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

Function TEST_CASE

test/eval_test.cpp:154–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152};
153
154TEST_CASE(literal_test1)
155{
156 migraphx::program p;
157 auto* mm = p.get_main_module();
158 auto one = mm->add_literal(1);
159 auto two = mm->add_literal(2);
160 mm->add_instruction(migraphx::make_op("add"), one, two);
161 auto result = p.eval({}).back();
162 EXPECT(result == migraphx::literal{3});
163 EXPECT(result != migraphx::literal{4});
164}
165
166TEST_CASE(literal_test2)
167{

Callers

nothing calls this directly

Calls 15

trimFunction · 0.85
capture_outputFunction · 0.85
get_main_moduleMethod · 0.80
backMethod · 0.80
add_parameterMethod · 0.80
get_argumentMethod · 0.80
atMethod · 0.80
replace_instructionMethod · 0.80
insert_instructionMethod · 0.80
remove_instructionMethod · 0.80
make_opFunction · 0.50
add_literalMethod · 0.45

Tested by

no test coverage detected