Skip to content

Add a pattern to convert tensor<->tensor static information casts to flow.tensor.reshape. - #6390

Closed
stellaraccident wants to merge 1 commit into
mainfrom
laurenzo_tensor_cast
Closed

stellaraccident wants to merge 1 commit into
mainfrom
laurenzo_tensor_cast

Conversation

@stellaraccident

@stellaraccident stellaraccident commented Jul 1, 2021 •

Copy link
Copy Markdown
Collaborator

@google-cla google-cla Bot added the cla: yes label Jul 1, 2021
@stellaraccident
stellaraccident requested a review from benvanik July 1, 2021 22:43
Comment thread iree/compiler/Translation/IREEVM.cpp Resolved
@MaheshRavishankar MaheshRavishankar self-assigned this Jul 1, 2021
@MaheshRavishankar

Copy link
Copy Markdown
Collaborator

Looks good to me. I can land this after the necessary changes land. Holding off on the approve button just to avoid accidental submission

…flow.tensor.reshape.

* Adds a common input conversion pipeline for this sort of thing (previously, the default was to do no input legalization, and I suspect there will be other odds and ends to be done).
* Fixes #6368 (verified on both the loopback and full MLP pastes).
* Should be finished/submitted once https://reviews.llvm.org/D105165 lands in IREE, since it adds new uses of memref.dim which it would be good to avoid mid-air collisions on. I left notes of what not to submit/change.
@stellaraccident stellaraccident changed the title Add a pattern to convert tensor<->tensor static information casts to hal.tensor.cast. Add a pattern to convert tensor<->tensor static information casts to flow.tensor.reshape. Jul 2, 2021
@ScottTodd

Copy link
Copy Markdown
Member

The code here was landed after some changes in #6407. Closing this PR.

@ScottTodd ScottTodd closed this Aug 2, 2021
@GMNGeoffrey
GMNGeoffrey deleted the laurenzo_tensor_cast branch August 17, 2021 16:47
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.

tensor.cast not working

3 participants