Repository navigation
Relax TorchIndexSelectOp to fuse with other ops. - #3682
Merged
Merged
Conversation
Contributor
Author
|
Already tested with internal model tests, and they are passing. |
Contributor
Author
|
There is an issue in unidirectional_lstm.mlir. I'm still working on this. Crashed in llvm-ir. But Passed on vulkan but with three following error messages. |
Contributor
Author
|
This fails in llvm-ir backend, because of "LLVM IR fails to verify". More log: It doesn't happen before the patch, I'll look into more details. |
After moving the op to tensors world, the ops can be fused with their consumer. The patch also allows the ops to live with their producers in the same dispatch function. This does not break any models. Go through some models and lowering from TF, and the input of the ops usually are from constant or model input, which becomes a buffer in IREE.
Contributor
Author
|
Synced to ToT and tested internally, PTAL. |
asaadaldien
approved these changes
Nov 5, 2020
Closed
hanhanW
added a commit
that referenced
this pull request
Nov 5, 2020
Merged
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.
After moving the op to tensors world, the ops can be fused with their
consumer. The patch also allows the ops to live with their producers in
the same dispatch function. This does not break any models. Go through
some models and lowering from TF, the input of the ops usually are from
constant or model input, which becomes a buffer in IREE.
Fixes #3562