We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9508fa1 commit a4496d2Copy full SHA for a4496d2
mlir/python/mlir/extras/types.py
@@ -3,10 +3,11 @@
3
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
4
5
from functools import partial
6
-from typing import Optional, List
+from typing import Optional, List, Union
7
8
from ..ir import (
9
Attribute,
10
+ AffineMapAttr,
11
BF16Type,
12
ComplexType,
13
ContiguousLayoutAttr,
@@ -153,7 +154,9 @@ def memref(
153
154
*shape,
155
element_type: Type = None,
156
memory_space: Optional[int] = None,
- layout: Optional[ContiguousLayoutAttr | StridedLayoutAttr] = None,
157
+ layout: Optional[
158
+ Union[ContiguousLayoutAttr, StridedLayoutAttr, AffineMapAttr]
159
+ ] = None,
160
):
161
if memory_space is not None:
162
memory_space = Attribute.parse(str(memory_space))
0 commit comments