Skip to content

Commit 8628c25

Browse files
modify enum enum
1 parent 50e783e commit 8628c25

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mlir/include/mlir-c/Dialect/SparseTensor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(SparseTensor, sparse_tensor);
2727
/// file.
2828
typedef uint64_t MlirSparseTensorLevelType;
2929

30-
enum MlirBaseLevelType {
30+
enum MlirBaseSparseTensorLevelType {
3131
MLIR_SPARSE_TENSOR_LEVEL_DENSE = 4, // 0b00001_00
3232
MLIR_SPARSE_TENSOR_LEVEL_COMPRESSED = 8, // 0b00010_00
3333
MLIR_SPARSE_TENSOR_LEVEL_COMPRESSED_NU = 9, // 0b00010_01

mlir/lib/Bindings/Python/DialectSparseTensor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ using namespace mlir;
2323
using namespace mlir::python::adaptors;
2424

2525
static void populateDialectSparseTensorSubmodule(const py::module &m) {
26-
py::enum_<MlirBaseLevelType>(m, "LevelType", py::module_local())
26+
py::enum_<MlirBaseSparseTensorLevelType>(m, "LevelType", py::module_local())
2727
.value("dense", MLIR_SPARSE_TENSOR_LEVEL_DENSE)
2828
.value("compressed24", MLIR_SPARSE_TENSOR_LEVEL_TWO_OUT_OF_FOUR)
2929
.value("compressed", MLIR_SPARSE_TENSOR_LEVEL_COMPRESSED)

0 commit comments

Comments
 (0)