-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sink reshape for reorder+reshape+permute pattern opt #28183
Open
songbell
wants to merge
16
commits into
openvinotoolkit:master
Choose a base branch
from
songbell:bell/fuse_reorder_reshape_transpose
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
sink reshape for reorder+reshape+permute pattern opt #28183
songbell
wants to merge
16
commits into
openvinotoolkit:master
from
songbell:bell/fuse_reorder_reshape_transpose
+320
−0
Conversation
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
Signed-off-by: fishbell <[email protected]>
Signed-off-by: fishbell <[email protected]>
Signed-off-by: fishbell <[email protected]>
songbell
changed the title
Bell/fuse reorder reshape transpose
optimize reorder+reshape+permute pattern if possible
Dec 23, 2024
songbell
force-pushed
the
bell/fuse_reorder_reshape_transpose
branch
2 times, most recently
from
December 24, 2024 07:36
8362209
to
5c077b4
Compare
songbell
changed the title
optimize reorder+reshape+permute pattern if possible
sink reshape for reorder+reshape+permute pattern opt
Dec 24, 2024
songbell
force-pushed
the
bell/fuse_reorder_reshape_transpose
branch
from
December 24, 2024 08:37
5c077b4
to
58aafd5
Compare
Signed-off-by: fishbell <[email protected]>
Signed-off-by: fishbell <[email protected]>
songbell
force-pushed
the
bell/fuse_reorder_reshape_transpose
branch
2 times, most recently
from
December 25, 2024 03:27
68ba5b1
to
d233d75
Compare
Signed-off-by: fishbell <[email protected]>
songbell
force-pushed
the
bell/fuse_reorder_reshape_transpose
branch
from
December 25, 2024 08:39
3f765c1
to
98e39cc
Compare
peterchen-intel
pushed a commit
to peterchen-intel/openvino
that referenced
this pull request
Jan 2, 2025
From openvinotoolkit#28183 sink reshape for further optimization relaxed pattern match to allow reorder not in place use random values in test Signed-off-by: fishbell <[email protected]>
src/plugins/intel_gpu/src/graph/graph_optimizer/reshape_transfer.cpp
Outdated
Show resolved
Hide resolved
auto itr = p.get_processing_order().begin(); | ||
while (itr != p.get_processing_order().end()) { | ||
auto& node = *itr++; | ||
if (!node->is_type<permute>()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems this pass doesn't support dynamic shape, why not check it at the beginning?
src/plugins/intel_gpu/src/graph/graph_optimizer/reshape_transfer.cpp
Outdated
Show resolved
Hide resolved
src/plugins/intel_gpu/tests/unit/passes/reorder_reshape_permute.cpp
Outdated
Show resolved
Hide resolved
…er.cpp Co-authored-by: River Li <[email protected]>
Signed-off-by: fishbell <[email protected]>
…com/songbell/openvino into bell/fuse_reorder_reshape_transpose
Draft
songbell
requested review from
sshlyapn and
vladimir-paramuzov
and removed request for
sshlyapn
January 13, 2025 02:04
yeonbok
reviewed
Jan 14, 2025
src/plugins/intel_gpu/src/graph/graph_optimizer/reshape_transfer.cpp
Outdated
Show resolved
Hide resolved
Signed-off-by: fishbell <[email protected]>
…com/songbell/openvino into bell/fuse_reorder_reshape_transpose
Signed-off-by: fishbell <[email protected]>
But why don't we do this at ngraph transform? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
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.
Details:
convolution ([N,W,C,H], byxf) -> reorder ([N,W,C,H), bfyx) -> reshape [N, W, CxH], bfyx -> permute order (0, 2,1) to [N, CxH, W] bfyx, which is equivalent/alias to ([N,W,C,H] byxf), and this execution chain can be optimized
Tickets: