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

Function AddAndSubTuple

tensorflow/compiler/xrt/tests/raw_api_test.cc:237–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235}
236
237xla::XlaComputation AddAndSubTuple() {
238 xla::XlaBuilder builder("AddAndSubTuple");
239 auto p0 = xla::Parameter(&builder, 0, xla::ShapeUtil::MakeShape(xla::F32, {}),
240 "P0");
241 auto p1 = xla::Parameter(&builder, 1, xla::ShapeUtil::MakeShape(xla::F32, {}),
242 "P1");
243 auto sum = xla::Add(p0, p1);
244 auto sub = xla::Sub(p0, p1);
245 xla::Tuple(&builder, {sum, sub});
246 return builder.Build().ValueOrDie();
247}
248
249xla::XlaComputation BroadcastComputation(
250 const xla::Shape& shape, absl::Span<const xla::int64> dimensions) {

Callers 1

TESTFunction · 0.85

Calls 6

MakeShapeFunction · 0.85
ParameterFunction · 0.50
AddClass · 0.50
SubFunction · 0.50
TupleFunction · 0.50
BuildMethod · 0.45

Tested by

no test coverage detected