Skip to content

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
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