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

Function TEST_F

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

Source from the content-addressed store, hash-verified

56};
57
58TEST_F(TupleSimplifierTest, TupleOfParameters) {
59 // A Tuple constructed of a bunch of parameters should not be changed.
60 HloComputation::Builder builder(TestName());
61 HloInstruction* param0 = builder.AddInstruction(
62 HloInstruction::CreateParameter(0, scalar_shape_, "param0"));
63 HloInstruction* param1 = builder.AddInstruction(
64 HloInstruction::CreateParameter(1, scalar_shape_, "param1"));
65 HloInstruction* param2 = builder.AddInstruction(
66 HloInstruction::CreateParameter(2, scalar_shape_, "param2"));
67 builder.AddInstruction(HloInstruction::CreateTuple({param0, param1, param2}));
68 auto module = CreateNewVerifiedModule();
69 module->AddEntryComputation(builder.Build());
70
71 Run(module.get(), /*change_expected=*/false);
72}
73
74TEST_F(TupleSimplifierTest, GteOfTupleOfParameter) {
75 // A GTE of a tuple parameter should not be changed.

Callers

nothing calls this directly

Calls 14

TestNameFunction · 0.85
NegateFunction · 0.85
AddEntryComputationMethod · 0.80
root_instructionMethod · 0.80
GetTupleElementFunction · 0.70
ParameterFunction · 0.70
RunFunction · 0.50
TupleFunction · 0.50
AddInstructionMethod · 0.45
BuildMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected