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

Function TEST_F

tensorflow/compiler/xla/service/conditional_simplifier_test.cc:102–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102TEST_F(ConditionalSimplifierTest, ConditionalGetsInlined) {
103 auto m = CreateNewVerifiedModule();
104 HloComputation* computation = MakeConditional(m.get());
105 ASSERT_TRUE(ConditionalSimplifier().Run(m.get()).ValueOrDie());
106 EXPECT_THAT(computation->root_instruction(),
107 op::Add(op::Parameter(), op::Constant()));
108}
109
110TEST_F(ConditionalSimplifierTest, BranchGetsInlined) {
111 auto m = CreateNewVerifiedModule();

Callers

nothing calls this directly

Calls 15

CreateTokenFunction · 0.85
MakeShapeFunction · 0.85
FindInstructionFunction · 0.85
root_instructionMethod · 0.80
opcodeMethod · 0.80
true_computationMethod · 0.80
false_computationMethod · 0.80
entry_computationMethod · 0.80
ConsumeValueOrDieMethod · 0.80
ReplaceAllUsesWithMethod · 0.80

Tested by

no test coverage detected