Skip to content
This repository was archived by the owner on Oct 11, 2025. It is now read-only.

Commit 590a073

Browse files
Jimmy2027nicolasvasilacheftynse
authored
[mlir][transform] Add PromoteTensorOp (#158318)
Transform op to request a tensor value to live in a specific memory space after bufferization Co-authored-by: Nicolas Vasilache <[email protected]> Co-authored-by: Alex Zinenko <[email protected]>
1 parent 01382fc commit 590a073

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,12 @@ def __init__(
4444
loc=None,
4545
ip=None,
4646
):
47-
# No other types are allowed, so hard-code those here.
48-
allocated_buffer_type = transform.AnyValueType.get()
49-
new_ops_type = transform.AnyOpType.get()
50-
5147
if isinstance(memory_space, int):
5248
memory_space = str(memory_space)
5349
if isinstance(memory_space, str):
5450
memory_space = Attribute.parse(memory_space)
5551

5652
super().__init__(
57-
allocated_buffer_type,
58-
new_ops_type,
5953
target,
6054
memory_space=memory_space,
6155
memcpy_op=memcpy_op,

0 commit comments

Comments
 (0)