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.
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
Add support for custom ONNX operator PriorBoxClustered #4202
Add support for custom ONNX operator PriorBoxClustered #4202
Changes from 13 commits
f9db1e6
b3f48e1
ff9263f
d53d732
c96c73b
f917ca1
282cb6e
5bb3909
fe6ef05
7a6757d
a446adf
b98b8b5
79ce775
de0ec1a
b0c8246
6d53796
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Why is this
Unsqueeze
needed here?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.
I have added this Unsqueeze to match pattern from: ConvertPriorBoxClusteredToLegacy transformation.
I'm not sure what is the purpose of the Unsqueeze there, @itikhono, could you please help us?
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.
The semantics of the custom PriorBox (Clustered) operator in ONNX and the specified version of the op in OV are different.
We use this sub-graph to convert ONNX PriorBox to the spec version (Unsqueeze is required)
But our plugins support only ONNX version, so we try to detect exactly this pattern and convert it from our specified version to supported by plugins using ConvertPriorBoxClusteredToLegacy.
Note: This code should be the same as PriorboxMutation transformation in MO. Please double-check it.