Repository navigation
Add patterns to fold tensor.empty with tensor.collapse_expand/shape. - #11771
Merged
Merged
Conversation
Collaborator
Author
|
Aargh... this actially not what we want. Ill update the PR in a bit. |
MaheshRavishankar
force-pushed
the
fix_11770
branch
from
January 10, 2023 06:04
17f9059 to
dac13ed
Compare
Collaborator
Author
|
This fixes the issue. Updated description |
MaheshRavishankar
marked this pull request as ready for review
January 10, 2023 06:05
hanhanW
approved these changes
Jan 10, 2023
matthias-springer
approved these changes
Jan 10, 2023
Without these patterns, we end up with sequences like ``` %0 = tensor.empty ... %1 = tensor.collapse_shape %0 ... ``` which dont get pulled into dispatch regions since `tensor.collapse_shapes` arent pulled into dispatch regions. With the patterns the `tensor.collapse_shape` fold away, avoiding `tensor.empty()` being left outside. Fixes iree-org#11770
MaheshRavishankar
force-pushed
the
fix_11770
branch
from
January 10, 2023 18:49
dac13ed to
4e4842a
Compare
MaheshRavishankar
enabled auto-merge (squash)
January 10, 2023 20:15
pzread
pushed a commit
to pzread/iree
that referenced
this pull request
Jan 11, 2023
…and/shape`. (iree-org#11771)" This reverts commit 1603491.
Contributor
|
It looks like the MobileSSD x86_64 benchmarks started failing from this PR. |
Collaborator
Author
|
I'll take a look in the morning |
Contributor
|
Hi @MaheshRavishankar is there any update about the SIGSEGV on MobileSSD? The benchmark CI is failing due to this issue. If it's not an easy fix, we should either revert this PR or temporarily disable the MobileSSD benchmark |
Collaborator
Author
|
Sorry, I wasn't able to look into this. Let's revert it for now, if revert doesn't cause issues |
MaheshRavishankar
pushed a commit
to MaheshRavishankar/iree
that referenced
this pull request
Jan 16, 2023
This relands iree-org#11771. Without these patterns, we end up with sequences like ``` %0 = tensor.empty ... %1 = tensor.collapse_shape %0 ... ``` which dont get pulled into dispatch regions since tensor.collapse_shapes arent pulled into dispatch regions. With the patterns the tensor.collapse_shape fold away, avoiding tensor.empty() being left outside. Fixes iree-org#11770
rsuderman
pushed a commit
to rsuderman/iree
that referenced
this pull request
Jan 19, 2023
This relands iree-org#11771. Without these patterns, we end up with sequences like ``` %0 = tensor.empty ... %1 = tensor.collapse_shape %0 ... ``` which dont get pulled into dispatch regions since tensor.collapse_shapes arent pulled into dispatch regions. With the patterns the tensor.collapse_shape fold away, avoiding tensor.empty() being left outside. Fixes iree-org#11770
MaheshRavishankar
pushed a commit
to MaheshRavishankar/iree
that referenced
this pull request
Jan 25, 2023
This relands iree-org#11771. Without these patterns, we end up with sequences like ``` %0 = tensor.empty ... %1 = tensor.collapse_shape %0 ... ``` which dont get pulled into dispatch regions since tensor.collapse_shapes arent pulled into dispatch regions. With the patterns the tensor.collapse_shape fold away, avoiding tensor.empty() being left outside. Fixes iree-org#11770
MaheshRavishankar
added a commit
that referenced
this pull request
Jan 25, 2023
…11847) This relands #11771. Without these patterns, we end up with sequences like %0 = tensor.empty ... %1 = tensor.collapse_shape %0 ... which dont get pulled into dispatch regions since tensor.collapse_shapes arent pulled into dispatch regions. With the patterns the tensor.collapse_shape fold away, avoiding tensor.empty() being left outside. Fixes #11770
qedawkins
pushed a commit
to qedawkins/iree
that referenced
this pull request
Apr 2, 2023
…ree-org#11847) This relands iree-org#11771. Without these patterns, we end up with sequences like %0 = tensor.empty ... %1 = tensor.collapse_shape %0 ... which dont get pulled into dispatch regions since tensor.collapse_shapes arent pulled into dispatch regions. With the patterns the tensor.collapse_shape fold away, avoiding tensor.empty() being left outside. Fixes iree-org#11770
jpienaar
pushed a commit
that referenced
this pull request
May 1, 2023
…e`. (#11771) Without these patterns, we end up with sequences like ``` %0 = tensor.empty ... %1 = tensor.collapse_shape %0 ... ``` which dont get pulled into dispatch regions since `tensor.collapse_shapes` arent pulled into dispatch regions. With the patterns the `tensor.collapse_shape` fold away, avoiding `tensor.empty()` being left outside. Fixes #11770 Fixes #11770
jpienaar
pushed a commit
that referenced
this pull request
May 1, 2023
…11847) This relands #11771. Without these patterns, we end up with sequences like %0 = tensor.empty ... %1 = tensor.collapse_shape %0 ... which dont get pulled into dispatch regions since tensor.collapse_shapes arent pulled into dispatch regions. With the patterns the tensor.collapse_shape fold away, avoiding tensor.empty() being left outside. Fixes #11770
rengolin
pushed a commit
to plaidml/iree
that referenced
this pull request
May 2, 2023
…ree-org#11847) This relands iree-org#11771. Without these patterns, we end up with sequences like %0 = tensor.empty ... %1 = tensor.collapse_shape %0 ... which dont get pulled into dispatch regions since tensor.collapse_shapes arent pulled into dispatch regions. With the patterns the tensor.collapse_shape fold away, avoiding tensor.empty() being left outside. Fixes iree-org#11770
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.
Without these patterns, we end up with sequences like
which dont get pulled into dispatch regions since
tensor.collapse_shapesarent pulled into dispatch regions. With thepatterns the
tensor.collapse_shapefold away, avoidingtensor.empty()being left outside.Fixes #11770