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

Function SubAndScale

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

Source from the content-addressed store, hash-verified

187}
188
189xla::XlaComputation SubAndScale() {
190 xla::XlaBuilder builder("SubAndScale");
191 auto p0 = xla::Parameter(&builder, 0,
192 xla::ShapeUtil::MakeShape(xla::F32, {2}), "P0");
193 auto p1 = xla::Parameter(&builder, 1,
194 xla::ShapeUtil::MakeShape(xla::F32, {2}), "P1");
195 auto sum = xla::Sub(p0, p1);
196 auto c = xla::ConstantR0<float>(&builder, 11.0f);
197 xla::Mul(sum, c);
198 return builder.Build().ValueOrDie();
199}
200
201xla::XlaComputation Dot() {
202 xla::XlaBuilder builder("Dot");

Callers

nothing calls this directly

Calls 5

MakeShapeFunction · 0.85
ParameterFunction · 0.50
SubFunction · 0.50
MulFunction · 0.50
BuildMethod · 0.45

Tested by

no test coverage detected