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

Method create_program

test/verify/test_contiguous.cpp:35–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33struct test_contiguous : verify_program<test_contiguous<DType>>
34{
35 migraphx::program create_program() const
36 {
37 migraphx::program p;
38 auto* mm = p.get_main_module();
39 migraphx::shape s{DType, {4, 4, 4, 3}, {48, 4, 1, 16}};
40 auto x = mm->add_parameter("x", s);
41 mm->add_instruction(migraphx::make_op("contiguous"), x);
42 assert(p.get_output_shapes().back().standard());
43 return p;
44 }
45};
46
47template struct test_contiguous<migraphx::shape::float_type>;

Callers

nothing calls this directly

Calls 7

get_main_moduleMethod · 0.80
add_parameterMethod · 0.80
backMethod · 0.80
make_opFunction · 0.50
add_instructionMethod · 0.45
standardMethod · 0.45
get_output_shapesMethod · 0.45

Tested by

no test coverage detected