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

[TE][CreatePrimFunc] Fix create reduce block with spatial iter dependent init value #17301

Merged

Conversation

wrongtest-intellif
Copy link
Contributor

Fix missing recursion for reduction's init value in te.create_prim_func

Refer to https://discuss.tvm.apache.org/t/te-create-prim-func-vs-tvm-lower/17633

When the initial value depends on spatial iterators, we should also transform the initial value and remapping the vars.

@wrongtest-intellif wrongtest-intellif force-pushed the fix_create_init_block_with_spatial_iter branch from 1a337d2 to 26117e9 Compare August 26, 2024 03:40
@wrongtest-intellif wrongtest-intellif changed the title [TE][CreatePrimFunc] Fix create reduce block with spatial iter dependent init value. [TE][CreatePrimFunc] Fix create reduce block with spatial iter dependent init value Aug 26, 2024
@wrongtest-intellif wrongtest-intellif force-pushed the fix_create_init_block_with_spatial_iter branch from 26117e9 to b899690 Compare August 26, 2024 04:04
@tqchen tqchen merged commit c61982e into apache:main Aug 26, 2024
17 of 18 checks passed
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