forked from iree-org/iree
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Flow] Add patterns to lower tensor.reshape to flow.tensor.reshape (i…
…ree-org#15226) `tensor.reshape` takes a 1D tensor to specify the target shape, thereby supporting unranked reshapes. IREE does not support this, however in practice unranked tensors are rarely generated by frontends so here we simply opt to extract the necessary tensor extents to a static list (hopefully folding with a `tensor.from_elements`).
- Loading branch information
Showing
2 changed files
with
122 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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