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][Schedule] Refactor Tensorize #12070

Merged

Conversation

junrushao
Copy link
Member

This PR refactors the key schedule primitive tensorize, cleaning up the logic and brings the following benefits:

  1. tensorize is now failure-safe: previously if a failure happens between blockize and structural pattern matching, the sref tree is left unmaintained
  2. tensorize is now correct if a TIR is tensorized multiple times with the same tensor intrin: previously the intrin is not deep copied, so the pointer equality used in ScheduleState will fail if the TIR is tensorized multiple times

Per discussion with @vinx13 @yzh119 @spectrometerHBH

@junrushao junrushao marked this pull request as ready for review July 12, 2022 17:07
@junrushao
Copy link
Member Author

Unfortunately structural error reporting in pattern matching is NOT included in this PR, because it's currently blocked in TVMScript printer work by @yelite et al

@junrushao junrushao merged commit 7d9a07c into apache:main Jul 13, 2022
masahi pushed a commit to masahi/tvm that referenced this pull request Jul 15, 2022
* Refactor blockize

* Refactor tensorize

* Address review comments

* typo

* rename variables according to review
xinetzone pushed a commit to daobook/tvm that referenced this pull request Nov 25, 2022
* Refactor blockize

* Refactor tensorize

* Address review comments

* typo

* rename variables according to review
mikeseven pushed a commit to mikeseven/tvm that referenced this pull request Sep 27, 2023
* Refactor blockize

* Refactor tensorize

* Address review comments

* typo

* rename variables according to review
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.

3 participants