MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / TEST

Function TEST

tensorflow/compiler/xla/service/tuple_util_test.cc:58–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58TEST(TupleUtilTest, ExtractPrefix) {
59 HloInstruction *param0, *param1;
60 HloComputation* entry_computation;
61
62 TF_ASSERT_OK_AND_ASSIGN(
63 auto module, GetParsedModule(&entry_computation, &param0, &param1));
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
71TEST(TupleUtilTest, AppendSuffix) {
72 HloInstruction *param0, *param1;

Callers

nothing calls this directly

Calls 3

GetTupleElementFunction · 0.70
ParameterFunction · 0.70
TupleFunction · 0.50

Tested by

no test coverage detected