Skip to content

Commit 3abc7fd

Browse files
committed
address reviewer comments
Signed-off-by: Bangtian Liu <[email protected]>
1 parent ff09577 commit 3abc7fd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

mlir/lib/Bindings/Python/DialectLinalg.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ static void populateDialectLinalgSubmodule(nb::module_ m) {
122122
"Infers convolution dimensions", nb::arg("op"));
123123

124124
m.def(
125-
"get_indexing_maps_attr",
125+
"get_indexing_maps",
126126
[](MlirOperation op) -> std::optional<MlirAttribute> {
127127
MlirAttribute attr = mlirLinalgGetIndexingMapsAttribute(op);
128128
if (mlirAttributeIsNull(attr))

mlir/test/python/dialects/linalg/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,13 +182,13 @@ def test_get_indexing_maps_attr():
182182
@func.FuncOp.from_py_func(a_type, b_type, c_type)
183183
def matmul_func(a, b, c):
184184
zero = arith.ConstantOp(value=FloatAttr.get(f32, 0.0), result=f32)
185-
assert not linalg.get_indexing_maps_attr(
185+
assert not linalg.get_indexing_maps(
186186
zero.operation
187187
), "Expected no indexing_maps on non-linalg op"
188188

189189
init = linalg.fill(zero, outs=[c])
190190
fill_op = init.owner
191-
fill_maps = linalg.get_indexing_maps_attr(fill_op)
191+
fill_maps = linalg.get_indexing_maps(fill_op)
192192
assert fill_maps is not None
193193
assert len(fill_maps) == 2
194194

@@ -200,7 +200,7 @@ def matmul_func(a, b, c):
200200

201201
result = linalg.matmul(a, b, outs=(init,))
202202
matmul_op = result.owner
203-
matmul_maps = linalg.get_indexing_maps_attr(matmul_op)
203+
matmul_maps = linalg.get_indexing_maps(matmul_op)
204204
assert matmul_maps is not None
205205
assert len(matmul_maps) == 3
206206

0 commit comments

Comments
 (0)