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

Function Dot

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

Source from the content-addressed store, hash-verified

199}
200
201xla::XlaComputation Dot() {
202 xla::XlaBuilder builder("Dot");
203 auto p0 = xla::Parameter(
204 &builder, 0,
205 xla::ShapeUtil::MakeShapeWithLayout(xla::F32, {2, 2}, {0, 1}), "P0");
206 auto p1 = xla::Parameter(
207 &builder, 1,
208 xla::ShapeUtil::MakeShapeWithLayout(xla::F32, {2, 1}, {0, 1}), "P1");
209 xla::DotDimensionNumbers ddn;
210 ddn.add_lhs_contracting_dimensions(1);
211 ddn.add_rhs_contracting_dimensions(0);
212 xla::DotGeneral(p0, p1, ddn);
213 return builder.Build().ValueOrDie();
214}
215
216xla::XlaComputation AddS64() {
217 xla::XlaBuilder builder("AddS64");

Callers 2

TESTFunction · 0.70
CompileMethod · 0.50

Calls 3

DotGeneralFunction · 0.85
ParameterFunction · 0.50
BuildMethod · 0.45

Tested by

no test coverage detected