| 202 | } |
| 203 | |
| 204 | bool test_transpose() { |
| 205 | TestUtils::FP16TestFixture fixture("Transpose"); |
| 206 | |
| 207 | size_t input_a = fixture.create_input({2, 3}); |
| 208 | size_t transpose_result = fixture.graph().transpose(input_a); |
| 209 | |
| 210 | std::vector<__fp16> data_a = {1, 2, 3, 4, 5, 6}; |
| 211 | fixture.set_input_data(input_a, data_a); |
| 212 | fixture.execute(); |
| 213 | |
| 214 | std::vector<__fp16> expected = {1, 4, 2, 5, 3, 6}; |
| 215 | return fixture.verify_output(transpose_result, expected); |
| 216 | } |
| 217 | |
| 218 | bool test_reshape() { |
| 219 | TestUtils::FP16TestFixture fixture("Reshape"); |
no test coverage detected