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

Function TEST_CASE

test/eliminate_contiguous_test.cpp:40–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40TEST_CASE(standard_op)
41{
42 migraphx::module m;
43
44 auto l = m.add_parameter("x", {migraphx::shape::float_type, {2, 2}});
45 auto t = m.add_instruction(migraphx::make_op("transpose", {{"permutation", {1, 0}}}), l);
46 auto c = m.add_instruction(migraphx::make_op("contiguous"), t);
47 m.add_instruction(pass_standard_op{}, c);
48 auto count = std::distance(m.begin(), m.end());
49 run_pass(m);
50 EXPECT(std::distance(m.begin(), m.end()) == count);
51}
52
53TEST_CASE(standard_op_const)
54{

Callers

nothing calls this directly

Calls 15

distanceFunction · 0.85
get_2x2Function · 0.85
add_pointwiseFunction · 0.85
single_pointwiseFunction · 0.85
add_parameterMethod · 0.80
get_main_moduleMethod · 0.80
run_passFunction · 0.70
make_opFunction · 0.50
none_ofFunction · 0.50
add_instructionMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected