Skip to content

Commit 84cf157

Browse files
committed
fixup! [MLIR][Python] Add structured.fuseop to generator.
1 parent 5849a84 commit 84cf157

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

mlir/python/mlir/dialects/transform/structured.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,7 @@ def __init__(
171171
if isinstance(loop_types_or_target, (Operation, Value, OpView)):
172172
loop_types = [transform.AnyOpType.get()] * num_loops
173173
target = loop_types_or_target
174-
assert (
175-
target_or_none is None
176-
), "Cannot construct FuseOp with two targets."
174+
assert target_or_none is None, "Cannot construct FuseOp with two targets."
177175
else:
178176
loop_types = (
179177
([loop_types_or_target] * num_loops)

0 commit comments

Comments
 (0)