| 56 | } |
| 57 | |
| 58 | TEST(TupleUtilTest, ExtractPrefix) { |
| 59 | HloInstruction *param0, *param1; |
| 60 | HloComputation* entry_computation; |
| 61 | |
| 62 | TF_ASSERT_OK_AND_ASSIGN( |
| 63 | auto module, GetParsedModule(&entry_computation, ¶m0, ¶m1)); |
| 64 | |
| 65 | HloInstruction* prefix = TupleUtil::ExtractPrefix(param0, 2); |
| 66 | |
| 67 | EXPECT_THAT(prefix, op::Tuple(op::GetTupleElement(op::Parameter(0), 0), |
| 68 | op::GetTupleElement(op::Parameter(0), 1))); |
| 69 | } |
| 70 | |
| 71 | TEST(TupleUtilTest, AppendSuffix) { |
| 72 | HloInstruction *param0, *param1; |
nothing calls this directly
no test coverage detected