| 60 | }; |
| 61 | |
| 62 | TEST_CASE(basic) |
| 63 | { |
| 64 | migraphx::module m; |
| 65 | |
| 66 | auto a1 = m.add_instruction(allocate{migraphx::shape{migraphx::shape::float_type, {8}}}); |
| 67 | auto m1 = m.add_instruction(pass_op{}, a1); |
| 68 | |
| 69 | auto a2 = m.add_instruction(allocate{migraphx::shape{migraphx::shape::float_type, {40}}}); |
| 70 | auto m2 = m.add_instruction(pass_op{}, a2, m1); |
| 71 | |
| 72 | auto a3 = m.add_instruction(allocate{migraphx::shape{migraphx::shape::float_type, {200}}}); |
| 73 | m.add_instruction(pass_op{}, a3, m2); |
| 74 | |
| 75 | run_pass(m); |
| 76 | EXPECT(m.get_output_shapes().back() == migraphx::shape{migraphx::shape::float_type, {200}}); |
| 77 | EXPECT(m.get_parameter_shape("memory").bytes() == (8 * 4 + 40 * 4 + 200 * 4)); |
| 78 | } |
| 79 | |
| 80 | TEST_CASE(aligned) |
| 81 | { |
nothing calls this directly
no test coverage detected