| 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_; |
nothing calls this directly
no test coverage detected