-
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
Improve reshapeability of models with eltwise nodes influencing shapes #2767
Improve reshapeability of models with eltwise nodes influencing shapes #2767
Conversation
2eaeac1
to
3104514
Compare
3104514
to
f581c8d
Compare
f581c8d
to
0a7e589
Compare
0a7e589
to
4f0479f
Compare
4f0479f
to
187fd1c
Compare
187fd1c
to
6ffbc0c
Compare
e23c78d
to
88486b4
Compare
88486b4
to
1a5798d
Compare
Now I anticipate to get opencv/opencv#18741 merged to make pre-commit green. |
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.
nGraph part LGTM
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 <[email protected]>
Signed-off-by: Roman Kazantsev <[email protected]>
Signed-off-by: Roman Kazantsev <[email protected]>
Signed-off-by: Roman Kazantsev <[email protected]>
Signed-off-by: Roman Kazantsev <[email protected]>
Signed-off-by: Roman Kazantsev <[email protected]>
Signed-off-by: Roman Kazantsev <[email protected]>
1e3b311
to
5bb7b96
Compare
Signed-off-by: Roman Kazantsev <[email protected]>
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.
In general, code looks good, but some improvements should be applied
Signed-off-by: Roman Kazantsev <[email protected]>
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 <[email protected]> * Merge EltwiseInputNormalization and EltwiseInputReshape transformations Signed-off-by: Roman Kazantsev <[email protected]> * Remove Unsqueeze from Fused_op Signed-off-by: Roman Kazantsev <[email protected]> * Fix code after code review #1 Signed-off-by: Roman Kazantsev <[email protected]> * Fix code after review #2 Signed-off-by: Roman Kazantsev <[email protected]> * Fix code review #4 Signed-off-by: Roman Kazantsev <[email protected]> * Perform full normalization based on shapes of all inputs to eltwise Signed-off-by: Roman Kazantsev <[email protected]> * Refactor much to avoid old API and edges with unsqueeze_dims attribute Signed-off-by: Roman Kazantsev <[email protected]> * Fix code after review Signed-off-by: Roman Kazantsev <[email protected]>
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 [email protected]