[Mlir-commits] [mlir] [mlir][python] enable memref.subview (PR #79393)
Oleksandr Alex Zinenko
llvmlistbot at llvm.org
Mon Jan 29 06:03:11 PST 2024
================
@@ -618,6 +618,15 @@ class PyMemRefType : public PyConcreteType<PyMemRefType, PyShapedType> {
return mlirMemRefTypeGetLayout(self);
},
"The layout of the MemRef type.")
+ .def_property_readonly(
----------------
ftynse wrote:
This probably needs to become a method that may throw when the memref is not in the strided form.
I'd also consider separating `strides` and `offset` from the aesthetics point of view, but it could be bad for performance.
https://github.com/llvm/llvm-project/pull/79393
More information about the Mlir-commits
mailing list