[Mlir-commits] [mlir] [MLIR][Python] Add structured.fuseop to generator. (PR #120601)
Oleksandr Alex Zinenko
llvmlistbot at llvm.org
Fri Jan 3 00:30:02 PST 2025
================
@@ -140,6 +140,57 @@ def __init__(
)
+ at _ods_cext.register_operation(_Dialect, replace=True)
+class FuseOp(FuseOp):
+ """Specialization for FuseOp class."""
+
+ @overload
+ def __init__(
+ self,
+ target: Union[Operation, Value, OpView],
+ *,
+ sizes: Optional[Union[DynamicIndexList, ArrayAttr]] = None,
+ interchange: OptionalIntList = None,
+ loc=None,
+ ip=None,
+ ):
+ ...
----------------
ftynse wrote:
AFAIU, the code needs to list overloads separately from the implementation, the code currently lists only _one_ overload. https://mypy.readthedocs.io/en/stable/more_types.html#function-overloading
https://github.com/llvm/llvm-project/pull/120601
More information about the Mlir-commits
mailing list