Skip to content

Commit 86fb474

Browse files
committed
cleaning up comments
1 parent 5ec81e0 commit 86fb474

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

mlir/python/mlir/dialects/transform/extras/__init__.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from ....dialects import transform
1010
from ....dialects.transform import structured
1111
except ImportError as e:
12-
raise RuntimeError("Error loading imports from extension module") from e
12+
raise RuntimeError("Error loading imports") from e
1313

1414

1515
@dataclass
@@ -41,8 +41,8 @@ def match_ops(
4141
| structured.MatchInterfaceEnum
4242
| Sequence[str | ir.OpView],
4343
) -> OpHandle:
44-
"""Returns a handle to ops that match the given names, types, or interface.
45-
44+
"""
45+
Returns a handle to ops that match the given names, types, or interface.
4646
If only a single type is given, the value wrapped by the resulting
4747
handle is populated with the respective type.
4848
"""
@@ -90,13 +90,8 @@ def insert_transform_script(
9090
script: Callable[[ValueT], None],
9191
dump_script: bool = False,
9292
) -> None:
93-
"""Inserts the transform script of the schedule into the module.
93+
"""Inserts the transform script of the schedule into the module."""
9494

95-
Args:
96-
module: Existing module into which the script should be inserted.
97-
script: The transform script to apply at.
98-
dump_script: Whether to dump the script after creation.
99-
"""
10095
# Insert the script into the IR
10196
with module.context, ir.Location.unknown(module.context):
10297
with ir.InsertionPoint.at_block_begin(module.body):

0 commit comments

Comments
 (0)