Skip to content

Add support for dynamic shapes in IREE on Linalg on tensors. - #4434

Merged
nicolasvasilache merged 1 commit into
iree-org:mainfrom
nicolasvasilache:tensor-dynamic
Jan 12, 2021
Merged

nicolasvasilache merged 1 commit into
iree-org:mainfrom
nicolasvasilache:tensor-dynamic

Conversation

@nicolasvasilache

Copy link
Copy Markdown
Contributor

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

@google-cla google-cla Bot added the cla: yes label Jan 8, 2021
@nicolasvasilache

Copy link
Copy Markdown
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.

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
nicolasvasilache merged commit e8b4021 into iree-org:main Jan 12, 2021
@nicolasvasilache
nicolasvasilache deleted the tensor-dynamic branch January 12, 2021 14:54
@rsuderman rsuderman mentioned this pull request Jan 12, 2021
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