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

Merge HLOToHLO into HLOToHLOPreprocessing #2779

Merged
merged 2 commits into from
Aug 5, 2020

Conversation

hanhanW
Copy link
Contributor

@hanhanW hanhanW commented Aug 5, 2020

Some operations, like torch_index_select, can only live in their
dispatch function in IREE. Merging some of patterns from HLOToHLO to
earlier stage, so IREE can idetnfiy such of case.

This also unblocks unidrectional_lstm test on vulkan-spirv and llvm-ir.

@hanhanW
Copy link
Contributor Author

hanhanW commented Aug 5, 2020

I'm not sure if we want to fully merge HLOToHLO pass into HLOToHLOPreprocessing. It looks okay to me, what do you think? If it's a good idea, I can do it in this patch. For now just moving GatheToTorchIndexSelect pattern, which looks reasonable to me and this can unblock test on unidirectional_lstm.

@hanhanW hanhanW force-pushed the move-pattern branch 2 times, most recently from e826d5c to 6ba7ed4 Compare August 5, 2020 08:44
Some operations, like torch_index_select, can only live in their
dispatch function in IREE. Merging some of patterns from HLOToHLO to
earlier stage, so IREE can idetnfiy such of case.

This also unblocks unidrectional_lstm test on vulkan-spirv and llvm-ir.
@benvanik
Copy link
Collaborator

benvanik commented Aug 5, 2020

I'm not sure if we want to fully merge HLOToHLO pass into HLOToHLOPreprocessing.
That probably makes sense to do!

@hanhanW
Copy link
Contributor Author

hanhanW commented Aug 5, 2020

I'm not sure if we want to fully merge HLOToHLO pass into HLOToHLOPreprocessing.
That probably makes sense to do!

Sounds good, let me merge the whole pass into HLOToHLOPreprocessing, and delete HLOToHLO pass. Will update the PR.

@hanhanW hanhanW changed the title Move gather to torch_index_select pattern to HLOToHLOPreprocessing Merge HLOToHLO into HLOToHLOPreprocessing Aug 5, 2020
@hanhanW hanhanW merged commit 711f1ff into iree-org:main Aug 5, 2020
@hanhanW hanhanW deleted the move-pattern branch August 5, 2020 19:25
This was referenced Aug 5, 2020
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