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

[Tracking Issue] Specialize buffer value by specifying key value mappings. #40

Open
yzh119 opened this issue Sep 28, 2022 · 0 comments
Open

Comments

@yzh119
Copy link
Member

yzh119 commented Sep 28, 2022

We have a schedule primitive specialize_buffer that specializes the value of buffer A[i, j] to a given function f(i, j).

Currently, we restrict the form of f to lambda expressions, however, we can generalize this to also support key-value mappings.

For example

specialize_buffer({
    (1, 1): 2,
    (1, 2): 1,
})
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