-
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
[ONNX] Gather 8 #7185
Merged
postrational
merged 12 commits into
openvinotoolkit:master
from
t-jankowski:tj/onnx/gather8
Aug 26, 2021
Merged
[ONNX] Gather 8 #7185
Changes from 10 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
2f2735c
Use nGraph Gather8 for onnx
t-jankowski 8e54218
Add Gather8 simple unit test
t-jankowski db765e3
Add Gather8 3D unit test
t-jankowski 51fbf61
Add Gather8 negative axis unit test
t-jankowski bd0eb5e
Add Gather8 negative indices unit test
t-jankowski 91fdf17
Skip negative indices UT on CPU plugin
t-jankowski 24785c2
Correct style (clang format)
t-jankowski 5f82c8d
Merge remote-tracking branch 'upstream/master' into tj/onnx/gather8
t-jankowski 3b64bb5
Remove obsolete empty lines
t-jankowski 5cc490d
Merge remote-tracking branch 'upstream/master' into tj/onnx/gather8
t-jankowski 0438082
Merge remote-tracking branch 'upstream/master' into tj/onnx/gather8
t-jankowski 4a36337
Merge remote-tracking branch 'upstream/master' into tj/onnx/gather8
t-jankowski File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
ir_version: 7 | ||
graph { | ||
node { | ||
input: "data" | ||
input: "indices" | ||
output: "output" | ||
name: "gather" | ||
op_type: "Gather" | ||
attribute { | ||
name: "axis" | ||
i: 0 | ||
type: INT | ||
} | ||
} | ||
name: "test-gather8" | ||
input { | ||
name: "data" | ||
type { | ||
tensor_type { | ||
elem_type: 1 | ||
shape { | ||
dim { | ||
dim_value: 3 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
input { | ||
name: "indices" | ||
type { | ||
tensor_type { | ||
elem_type: 7 | ||
shape { | ||
dim { | ||
dim_value: 2 | ||
} | ||
dim { | ||
dim_value: 2 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
output { | ||
name: "output" | ||
type { | ||
tensor_type { | ||
elem_type: 1 | ||
shape { | ||
dim { | ||
dim_value: 2 | ||
} | ||
dim { | ||
dim_value: 2 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
opset_import { | ||
domain: "" | ||
version: 13 | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
ir_version: 7 | ||
graph { | ||
node { | ||
input: "data" | ||
input: "indices" | ||
output: "output" | ||
name: "gather" | ||
op_type: "Gather" | ||
attribute { | ||
name: "axis" | ||
i: 1 | ||
type: INT | ||
} | ||
} | ||
name: "test-gather8" | ||
input { | ||
name: "data" | ||
type { | ||
tensor_type { | ||
elem_type: 1 | ||
shape { | ||
dim { | ||
dim_value: 3 | ||
} | ||
dim { | ||
dim_value: 3 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
input { | ||
name: "indices" | ||
type { | ||
tensor_type { | ||
elem_type: 7 | ||
shape { | ||
dim { | ||
dim_value: 2 | ||
} | ||
dim { | ||
dim_value: 2 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
output { | ||
name: "output" | ||
type { | ||
tensor_type { | ||
elem_type: 1 | ||
shape { | ||
dim { | ||
dim_value: 3 | ||
} | ||
dim { | ||
dim_value: 2 | ||
} | ||
dim { | ||
dim_value: 2 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
opset_import { | ||
domain: "" | ||
version: 13 | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
ir_version: 7 | ||
graph { | ||
node { | ||
input: "data" | ||
input: "indices" | ||
output: "output" | ||
name: "gather" | ||
op_type: "Gather" | ||
attribute { | ||
name: "axis" | ||
i: 1 | ||
type: INT | ||
} | ||
} | ||
name: "test-gather8" | ||
input { | ||
name: "data" | ||
type { | ||
tensor_type { | ||
elem_type: 6 | ||
shape { | ||
dim { | ||
dim_value: 2 | ||
} | ||
dim { | ||
dim_value: 2 | ||
} | ||
dim { | ||
dim_value: 2 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
input { | ||
name: "indices" | ||
type { | ||
tensor_type { | ||
elem_type: 6 | ||
shape { | ||
dim { | ||
dim_value: 4 | ||
} | ||
dim { | ||
dim_value: 1 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
output { | ||
name: "output" | ||
type { | ||
tensor_type { | ||
elem_type: 6 | ||
shape { | ||
dim { | ||
dim_value: 2 | ||
} | ||
dim { | ||
dim_value: 4 | ||
} | ||
dim { | ||
dim_value: 1 | ||
} | ||
dim { | ||
dim_value: 2 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
opset_import { | ||
domain: "" | ||
version: 13 | ||
} |
77 changes: 77 additions & 0 deletions
77
ngraph/test/models/onnx/gather_int8_3D_axis_neg_1.prototxt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
ir_version: 7 | ||
graph { | ||
node { | ||
input: "data" | ||
input: "indices" | ||
output: "output" | ||
name: "gather" | ||
op_type: "Gather" | ||
attribute { | ||
name: "axis" | ||
i: -1 | ||
type: INT | ||
} | ||
} | ||
name: "test-gather8" | ||
input { | ||
name: "data" | ||
type { | ||
tensor_type { | ||
elem_type: 3 | ||
shape { | ||
dim { | ||
dim_value: 2 | ||
} | ||
dim { | ||
dim_value: 2 | ||
} | ||
dim { | ||
dim_value: 2 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
input { | ||
name: "indices" | ||
type { | ||
tensor_type { | ||
elem_type: 6 | ||
shape { | ||
dim { | ||
dim_value: 4 | ||
} | ||
dim { | ||
dim_value: 1 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
output { | ||
name: "output" | ||
type { | ||
tensor_type { | ||
elem_type: 3 | ||
shape { | ||
dim { | ||
dim_value: 2 | ||
} | ||
dim { | ||
dim_value: 2 | ||
} | ||
dim { | ||
dim_value: 4 | ||
} | ||
dim { | ||
dim_value: 1 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
opset_import { | ||
domain: "" | ||
version: 13 | ||
} |
Oops, something went wrong.
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.
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 no more default?
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.
Current default points to opset7. I'll file a ticket to upgrade default opset to 8.