Improve reshapeability of models with eltwise nodes influencing shapes#2767
Merged
lazarevevgeny merged 9 commits intoopenvinotoolkit:masterfrom Nov 16, 2020
Merged
Conversation
2eaeac1 to
3104514
Compare
3104514 to
f581c8d
Compare
f581c8d to
0a7e589
Compare
0a7e589 to
4f0479f
Compare
lazarevevgeny
suggested changes
Oct 27, 2020
4f0479f to
187fd1c
Compare
lazarevevgeny
suggested changes
Oct 29, 2020
187fd1c to
6ffbc0c
Compare
lazarevevgeny
suggested changes
Oct 30, 2020
e23c78d to
88486b4
Compare
88486b4 to
1a5798d
Compare
6 tasks
Collaborator
Author
|
Now I anticipate to get opencv/opencv#18741 merged to make pre-commit green. |
ilyachur
reviewed
Nov 6, 2020
342dccc to
1e3b311
Compare
Reshape node always needs to be inserted in order to preserve ShapeOf nodes (reshapability of a model) that can potentially be above elementwise node. Refactor EltwiseInputReshape_test and EltwiseInputNormalization_test since the logic of maintaining reshape for eltwise has been changed. Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
1e3b311 to
5bb7b96
Compare
lazarevevgeny
suggested changes
Nov 13, 2020
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
Contributor
lazarevevgeny
left a comment
There was a problem hiding this comment.
In general, code looks good, but some improvements should be applied
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
lazarevevgeny
approved these changes
Nov 13, 2020
lazarevevgeny
approved these changes
Nov 16, 2020
mryzhov
pushed a commit
to mryzhov/openvino
that referenced
this pull request
Dec 16, 2020
openvinotoolkit#2767) * Fix ElementwiseInputReshape transformation Reshape node always needs to be inserted in order to preserve ShapeOf nodes (reshapability of a model) that can potentially be above elementwise node. Refactor EltwiseInputReshape_test and EltwiseInputNormalization_test since the logic of maintaining reshape for eltwise has been changed. Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com> * Merge EltwiseInputNormalization and EltwiseInputReshape transformations Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com> * Remove Unsqueeze from Fused_op Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com> * Fix code after code review #1 Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com> * Fix code after review #2 Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com> * Fix code review #4 Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com> * Perform full normalization based on shapes of all inputs to eltwise Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com> * Refactor much to avoid old API and edges with unsqueeze_dims attribute Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com> * Fix code after review Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
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.
Description: Reshape node always needs to be inserted in order to preserve ShapeOf nodes (reshapability of a model) that can potentially be above elementwise node.
JIRA: 39665
Code:
Validation:
Documentation:
Signed-off-by: Roman Kazantsev roman.kazantsev@intel.com