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

[TIR][Bugfix] Fix AXIS_SEPARATORS in tir.Schedule.transform_layout #13326

Merged

Conversation

Lunderberg
Copy link
Contributor

Preivously, the block SREF reuse only included a single step of changes, and would have an incorrect mapping if multiple sequential changes to the TIR block occurred. This could happen if a BufferStore was updated, followed by replacement of Block iter vars/values. This commit tracks the Block replacements across each usage, to ensure the SREF instances remain valid.

@tvm-bot
Copy link
Collaborator

tvm-bot commented Nov 8, 2022

Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment.

Generated by tvm-bot

Preivously, the block SREF reuse only included a single step of
changes, and would have an incorrect mapping if multiple sequential
changes to the TIR block occurred.  This could happen if a
`BufferStore` was updated, followed by replacement of `Block` iter
vars/values.  This commit tracks the Block replacements across each
usage, to ensure the SREF instances remain valid.
@Lunderberg Lunderberg force-pushed the padded_transform_with_axis_separators branch from 15d426f to 4ff0486 Compare November 9, 2022 14:35
@abhikran-quic
Copy link
Contributor

Thank you @Lunderberg for this change!

@vinx13 vinx13 merged commit b6fae9b into apache:main Nov 14, 2022
@Lunderberg Lunderberg deleted the padded_transform_with_axis_separators branch November 15, 2022 18:16
xinetzone pushed a commit to daobook/tvm that referenced this pull request Nov 25, 2022
…pache#13326)

Preivously, the block SREF reuse only included a single step of
changes, and would have an incorrect mapping if multiple sequential
changes to the TIR block occurred.  This could happen if a
`BufferStore` was updated, followed by replacement of `Block` iter
vars/values.  This commit tracks the Block replacements across each
usage, to ensure the SREF instances remain valid.
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.

None yet

4 participants