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

Missing index variable declarations for precompute #459

Merged
merged 1 commit into from
May 18, 2021

Conversation

nirvikbaruah
Copy link
Contributor

This PR addresses issues brought up in #431 and #347. Current behaviour of the precompute function generates incorrect code when i != iw. This can be fixed by not adding the children of precompute relations to the provenance graph.

Testing:
Added two test cases. First test case calls precompute with two different index variables. Second test case calls precompute with two different index variables before splitting the intermediary tensor to demonstrate that this fix does not impact subsequent transformations.

@weiya711 weiya711 self-requested a review May 15, 2021 22:19
@weiya711
Copy link
Contributor

weiya711 commented May 18, 2021

The tests added and changes to fix the precompute indexVar i != iw code generation bug looks great

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

Successfully merging this pull request may close these issues.

2 participants