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

Method CreateMax

tensorflow/compiler/xla/tests/map_test.cc:63–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61 }
62
63 XlaComputation CreateMax() {
64 XlaBuilder b(TestName());
65 auto lhs = Parameter(&b, 0, ShapeUtil::MakeShape(F32, {}), "x");
66 auto rhs = Parameter(&b, 1, ShapeUtil::MakeShape(F32, {}), "y");
67 Max(lhs, rhs);
68 auto computation_status = b.Build();
69 TF_CHECK_OK(computation_status.status());
70 return computation_status.ConsumeValueOrDie();
71 }
72
73 // Creates a computation that accepts an F32 and returns T(1) (ignoring the
74 // argument).

Callers

nothing calls this directly

Calls 7

TestNameFunction · 0.85
MakeShapeFunction · 0.85
ConsumeValueOrDieMethod · 0.80
ParameterFunction · 0.50
MaxFunction · 0.50
BuildMethod · 0.45
statusMethod · 0.45

Tested by

no test coverage detected