diff --git a/include/mlir-hlo/Dialect/mhlo/IR/hlo_ops.td b/include/mlir-hlo/Dialect/mhlo/IR/hlo_ops.td index 77b5159..cca165e 100644 --- a/include/mlir-hlo/Dialect/mhlo/IR/hlo_ops.td +++ b/include/mlir-hlo/Dialect/mhlo/IR/hlo_ops.td @@ -960,6 +960,9 @@ def HLO_DotGeneralOp: HLO_Op<"dot_general", [NoSideEffect]>, let results = (outs HLO_Tensor); let verifier = [{ return Verify(*this); }]; + // DotGeneral op required custom exporter to pass the preferred element type + // to Xla builder. + let hasCustomHLOConverter = 1; } // Define Base Einsum op within the HLO dialect as these are client ops and