[Mlir-commits] [mlir] 4eaf3a9 - [mlir][python] reformat transform ext (#71136)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Nov 16 11:37:56 PST 2023
Author: Maksim Levental
Date: 2023-11-16T13:37:52-06:00
New Revision: 4eaf3a9c12630341f3f4470e3d68d8a4b66cbc26
URL: https://github.com/llvm/llvm-project/commit/4eaf3a9c12630341f3f4470e3d68d8a4b66cbc26
DIFF: https://github.com/llvm/llvm-project/commit/4eaf3a9c12630341f3f4470e3d68d8a4b66cbc26.diff
LOG: [mlir][python] reformat transform ext (#71136)
Added:
Modified:
mlir/python/mlir/dialects/transform/__init__.py
Removed:
################################################################################
diff --git a/mlir/python/mlir/dialects/transform/__init__.py b/mlir/python/mlir/dialects/transform/__init__.py
index 1dca1a66bc35707..7ae4fefbac41215 100644
--- a/mlir/python/mlir/dialects/transform/__init__.py
+++ b/mlir/python/mlir/dialects/transform/__init__.py
@@ -52,28 +52,28 @@ def patterns(self) -> Block:
@_ods_cext.register_operation(_Dialect, replace=True)
class GetParentOp(GetParentOp):
- def __init__(
- self,
- result_type: Type,
- target: Union[Operation, Value],
- *,
- isolated_from_above: bool = False,
- op_name: Optional[str] = None,
- deduplicate: bool = False,
- nth_parent: int = 1,
- loc=None,
- ip=None,
- ):
- super().__init__(
- result_type,
- _get_op_result_or_value(target),
- isolated_from_above=isolated_from_above,
- op_name=op_name,
- deduplicate=deduplicate,
- nth_parent=nth_parent,
- loc=loc,
- ip=ip,
- )
+ def __init__(
+ self,
+ result_type: Type,
+ target: Union[Operation, Value],
+ *,
+ isolated_from_above: bool = False,
+ op_name: Optional[str] = None,
+ deduplicate: bool = False,
+ nth_parent: int = 1,
+ loc=None,
+ ip=None,
+ ):
+ super().__init__(
+ result_type,
+ _get_op_result_or_value(target),
+ isolated_from_above=isolated_from_above,
+ op_name=op_name,
+ deduplicate=deduplicate,
+ nth_parent=nth_parent,
+ loc=loc,
+ ip=ip,
+ )
@_ods_cext.register_operation(_Dialect, replace=True)
More information about the Mlir-commits
mailing list