[TIR] [Schedule] Add get_output_blocks primitive#14490
Merged
kparzysz-quic merged 4 commits intoapache:mainfrom Apr 6, 2023
Merged
[TIR] [Schedule] Add get_output_blocks primitive#14490kparzysz-quic merged 4 commits intoapache:mainfrom
kparzysz-quic merged 4 commits intoapache:mainfrom
Conversation
When scheduling fused ops, its really useful to be able to get all the output blocks and schedule other blocks in the fused op with respect to output blocks. This helps avoid hardcoding block names in manually written schedules in many cases
Collaborator
|
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 |
Contributor
Author
Contributor
Author
|
@tvm-bot rerun |
Contributor
Author
|
one more attempt to get cross-isa-minimal working |
Contributor
Author
|
@tvm-bot rerun |
Hzfengsy
approved these changes
Apr 5, 2023
Hzfengsy
reviewed
Apr 5, 2023
This commit updates the primitive to take scope block as argument and return all output blocks under that scope. In order to get all output blocks of a PrimFunc, the root block can be passed
Hzfengsy
approved these changes
Apr 5, 2023
Member
|
Thanks @quic-sanirudh for the continuous improvement. Let's merge it when the ci is green |
Contributor
Author
|
@tvm-bot rerun |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When scheduling fused ops, its really useful to be able to get all the output blocks and schedule other blocks in the fused op with respect to output blocks. This helps avoid hardcoding block names in manually written schedules in many cases