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

Function create_program

test/module_test.cpp:79–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79static migraphx::program create_program()
80{
81 migraphx::program p;
82 auto* mm = p.get_main_module();
83
84 auto x = mm->add_parameter("x", {migraphx::shape::int64_type});
85 auto y = mm->add_parameter("y", {migraphx::shape::int64_type});
86
87 auto sum = mm->add_instruction(sum_op{}, x, y);
88 auto one = mm->add_literal(1);
89 mm->add_instruction(sum_op{}, sum, one);
90
91 return p;
92}
93
94TEST_CASE(calc_implict_deps)
95{

Callers 1

TEST_CASEFunction · 0.70

Calls 4

get_main_moduleMethod · 0.80
add_parameterMethod · 0.80
add_instructionMethod · 0.45
add_literalMethod · 0.45

Tested by

no test coverage detected