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

Method CreateGt

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

Creates a binary function with signature (F32, F32) -> Pred defined by (x, y) -> x > y.

Source from the content-addressed store, hash-verified

137 // Creates a binary function with signature (F32, F32) -> Pred
138 // defined by (x, y) -> x > y.
139 XlaComputation CreateGt() {
140 XlaBuilder b("Gt");
141 auto x = Parameter(&b, 0, ShapeUtil::MakeShape(F32, {}), "x");
142 auto y = Parameter(&b, 1, ShapeUtil::MakeShape(F32, {}), "y");
143 Gt(x, y);
144 auto computation_status = b.Build();
145 TF_CHECK_OK(computation_status.status());
146 return computation_status.ConsumeValueOrDie();
147 }
148
149 // Creates a function that adds three scalar arguments
150 //

Callers

nothing calls this directly

Calls 6

MakeShapeFunction · 0.85
ConsumeValueOrDieMethod · 0.80
ParameterFunction · 0.50
GtClass · 0.50
BuildMethod · 0.45
statusMethod · 0.45

Tested by

no test coverage detected