| 38 | } |
| 39 | |
| 40 | TEST_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 | |
| 53 | TEST_CASE(standard_op_const) |
| 54 | { |
nothing calls this directly
no test coverage detected