[Mlir-commits] [mlir] 1d6f102 - [mlir] [python] Fixed the return type of `MemRefType.get_strides_and_offset` (#144523)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Jun 18 06:53:23 PDT 2025
Author: Sergei Lebedev
Date: 2025-06-18T09:53:20-04:00
New Revision: 1d6f1029f7e8cf5468309078da3e85201844b625
URL: https://github.com/llvm/llvm-project/commit/1d6f1029f7e8cf5468309078da3e85201844b625
DIFF: https://github.com/llvm/llvm-project/commit/1d6f1029f7e8cf5468309078da3e85201844b625.diff
LOG: [mlir] [python] Fixed the return type of `MemRefType.get_strides_and_offset` (#144523)
Previously, the return type for `offset` was `list[int]`, which clearly
is not right.
Added:
Modified:
mlir/python/mlir/_mlir_libs/_mlir/ir.pyi
Removed:
################################################################################
diff --git a/mlir/python/mlir/_mlir_libs/_mlir/ir.pyi b/mlir/python/mlir/_mlir_libs/_mlir/ir.pyi
index 6c5f91d757cdc..70bca3c75d842 100644
--- a/mlir/python/mlir/_mlir_libs/_mlir/ir.pyi
+++ b/mlir/python/mlir/_mlir_libs/_mlir/ir.pyi
@@ -2119,7 +2119,7 @@ class MemRefType(ShapedType):
"""
@property
def typeid(self) -> TypeID: ...
- def get_strides_and_offset(self) -> tuple[list[int], list[int]]:
+ def get_strides_and_offset(self) -> tuple[list[int], int]:
"""
The strides and offset of the MemRef type.
"""
More information about the Mlir-commits
mailing list