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

Method Compile

tensorflow/compiler/tf2xla/kernels/xla_dot_op.cc:44–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 }
43
44 void Compile(XlaOpKernelContext* context) override {
45 const TensorShape lhs_shape = context->InputShape(0);
46 const TensorShape rhs_shape = context->InputShape(1);
47
48 // We do only minimal checking, relying on XLA to check the shape
49 // invariants.
50 xla::XlaOp output = xla::DotGeneral(context->Input(0), context->Input(1),
51 dnums_, &precision_config_);
52 context->SetOutput(0, output);
53 }
54
55 private:
56 xla::DotDimensionNumbers dnums_;

Callers

nothing calls this directly

Calls 4

DotGeneralFunction · 0.85
InputShapeMethod · 0.80
InputMethod · 0.45
SetOutputMethod · 0.45

Tested by

no test coverage detected