[Mlir-commits] [mlir] [mlir][sparse][pybind][CAPI] remove LevelType enum from CAPI, constru… (PR #81682)

Yinying Li llvmlistbot at llvm.org
Tue Feb 13 15:50:46 PST 2024


================
@@ -113,16 +109,14 @@ static void populateDialectSparseTensorSubmodule(const py::module &m) {
             return mlirSparseTensorEncodingAttrGetStructuredM(
                 mlirSparseTensorEncodingAttrGetLvlType(self, lvlRank - 1));
           })
-      .def_property_readonly("lvl_types_enum", [](MlirAttribute self) {
+      .def_property_readonly("lvl_formats_enum", [](MlirAttribute self) {
         const int lvlRank = mlirSparseTensorEncodingGetLvlRank(self);
-        std::vector<MlirBaseSparseTensorLevelType> ret;
+        std::vector<MlirSparseTensorLevelFormat> ret;
         ret.reserve(lvlRank);
         for (int l = 0; l < lvlRank; l++) {
           // Convert level type to 32 bits to ignore n and m for n_out_of_m
           // format.
----------------
yinying-lisa-li wrote:

Can you remove this comment?

https://github.com/llvm/llvm-project/pull/81682


More information about the Mlir-commits mailing list