mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 05:32:28 +08:00
[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.
This commit is contained in:
@@ -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.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user