Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling composite PrimExpr and lambda in meta schedule traces #515

Open
junrushao opened this issue Nov 13, 2021 · 0 comments
Open

Enabling composite PrimExpr and lambda in meta schedule traces #515

junrushao opened this issue Nov 13, 2021 · 0 comments

Comments

@junrushao
Copy link
Member

There are needs to use lambda expression and composite PrimExpr in meta schedule traces. For example:

sch.layout_transform(block, buffer_index, lambda x, y: x ^ y, y)
sch....(loop, ..., a + b)

The way we enable this is to actually convert them into an Array which is serializable:

lambda x, y: x ^ y, y => ["lambda", /*inputs = */[x, y], /*outputs = */[x ^ y, y]]
a + b => ["prim_expr", /*inputs = */[a, b], /*outputs = */a + b]

Per discussion with @vinx13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant