Repository navigation
Add support for dynamic shapes in IREE on Linalg on tensors. - #4434
Merged
Merged
Conversation
Contributor
Author
|
Sending this a little early as I have some "off by one" issue around the view / subview that makes the result shifted to the left (i.e. leading values missing, some trailing values set to zero and possible memory stomping). Still the impl. is close to finished so I can benefit from a review and maybe other pairs of eyes to see where I am off. |
benvanik
requested changes
Jan 8, 2021
nicolasvasilache
force-pushed
the
tensor-dynamic
branch
from
January 9, 2021 16:27
78a4d07 to
27cd15a
Compare
nicolasvasilache
force-pushed
the
tensor-dynamic
branch
from
January 9, 2021 16:30
27cd15a to
fe5a061
Compare
benvanik
approved these changes
Jan 9, 2021
This revision pipes dynamic shapes through IREE on tensors all the way to LLVM. Peculiarities of TieShapeOp require some genuflexions to traverse IR and recover proper indices for the memref shapes in bufferization. This creates an asymmetry that it would be welcome to remove in the future, once we have core support for ranked shapes types and subshape operations as discussed in https://llvm.discourse.group/t/linalg-and-shapes/2421. PiperOrigin-RevId: 350429972
nicolasvasilache
force-pushed
the
tensor-dynamic
branch
from
January 12, 2021 10:42
fe5a061 to
6bec840
Compare
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.
This revision pipes dynamic shapes through IREE on tensors all the way to LLVM.
Peculiarities of TieShapeOp require some genuflexions to traverse IR and recover proper
indices for the memref shapes in bufferization.
This creates an asymmetry that it would be welcome to remove in the future, once we have core support for ranked shapes types and subshape operations as discussed in
https://llvm.discourse.group/t/linalg-and-shapes/2421.
PiperOrigin-RevId: 350429972