Skip to content

Commit 492662d

Browse files
format
1 parent 4116e1d commit 492662d

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

mlir/test/CAPI/sparse_tensor.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ static int testRoundtripEncoding(MlirContext ctx) {
2626
// clang-format off
2727
const char *originalAsm =
2828
"#sparse_tensor.encoding<{ "
29-
"map = [s0](d0, d1) -> (s0 : dense, d0 : dense, d1 : structured[2, 4]), "
29+
"map = [s0](d0, d1) -> (s0 : dense, d0 : compressed, d1 : compressed), "
3030
"posWidth = 32, crdWidth = 64 }>";
3131
// clang-format on
3232
MlirAttribute originalAttr =
@@ -39,8 +39,8 @@ static int testRoundtripEncoding(MlirContext ctx) {
3939
// CHECK: (d0, d1)[s0] -> (s0, d0, d1)
4040
mlirAffineMapDump(dimToLvl);
4141
// CHECK: level_type: 65536
42-
// CHECK: level_type: 65536
43-
// CHECK: level_type: 4406637494272
42+
// CHECK: level_type: 131072
43+
// CHECK: level_type: 131072
4444
MlirAffineMap lvlToDim =
4545
mlirSparseTensorEncodingAttrGetLvlToDim(originalAttr);
4646
int lvlRank = mlirSparseTensorEncodingGetLvlRank(originalAttr);

mlir/test/python/dialects/sparse_tensor/dialect.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,7 @@ def testEncodingAttrStructure():
9696
# CHECK: created_equal: False
9797
print(f"created_equal: {created == casted}")
9898

99-
built_2_4 = st.EncodingAttr.build_level_type(
100-
st.LevelType.n_out_of_m, 2, 4
101-
)
99+
built_2_4 = st.EncodingAttr.build_level_type(st.LevelType.n_out_of_m, 2, 4)
102100
dim_to_lvl = AffineMap.get(
103101
2,
104102
0,

0 commit comments

Comments
 (0)