[Mlir-commits] [mlir] d7e26b5 - [mlir][linalg][transform][python] Fix mix-in for MaskedVectorize.
Ingo Müller
llvmlistbot at llvm.org
Wed Aug 16 09:27:51 PDT 2023
Author: Ingo Müller
Date: 2023-08-16T16:27:46Z
New Revision: d7e26b56207cbd8995296c5bb7c11ce676b649da
URL: https://github.com/llvm/llvm-project/commit/d7e26b56207cbd8995296c5bb7c11ce676b649da
DIFF: https://github.com/llvm/llvm-project/commit/d7e26b56207cbd8995296c5bb7c11ce676b649da.diff
LOG: [mlir][linalg][transform][python] Fix mix-in for MaskedVectorize.
Fix forward bug in dac19b457e2cfd139e0e5cc29872ba3c65b7510f, which uses
the vertical bar operator for type hints, which is only supported by
Python 3.10 and later, and thus breaks the builds on Python 3.8.
Added:
Modified:
mlir/python/mlir/dialects/_structured_transform_ops_ext.py
Removed:
################################################################################
diff --git a/mlir/python/mlir/dialects/_structured_transform_ops_ext.py b/mlir/python/mlir/dialects/_structured_transform_ops_ext.py
index de5161eb19b167..b822ba6d75a61d 100644
--- a/mlir/python/mlir/dialects/_structured_transform_ops_ext.py
+++ b/mlir/python/mlir/dialects/_structured_transform_ops_ext.py
@@ -28,7 +28,7 @@
def _dispatch_dynamic_index_list(
indices: Union[DynamicIndexList, ArrayAttr],
-) -> tuple[list[ValueLike], list[int] | ArrayAttr, list[bool]]:
+) -> tuple[list[ValueLike], Union[list[int], ArrayAttr], list[bool]]:
"""Dispatches a list of indices to the appropriate form.
This is similar to the custom `DynamicIndexList` directive upstream:
More information about the Mlir-commits
mailing list