-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ONNX] Added support and test cases for Shape-15 (#23492)
related issue : #20194
- Loading branch information
Showing
14 changed files
with
584 additions
and
11 deletions.
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
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
50 changes: 50 additions & 0 deletions
50
src/frontends/onnx/tests/models/shape_opset15_end_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,50 @@ | ||
ir_version: 3 | ||
producer_name: "OpenVINO ONNX Frontend" | ||
graph { | ||
name: "test_shape15" | ||
node { | ||
input: "tensor" | ||
output: "shape_output" | ||
op_type: "Shape" | ||
attribute { | ||
name: "end" | ||
type: INT | ||
i: 1 | ||
} | ||
} | ||
input { | ||
name: "tensor" | ||
type { | ||
tensor_type { | ||
elem_type: 1 | ||
shape { | ||
dim { | ||
dim_value: 3 | ||
} | ||
dim { | ||
dim_value: 4 | ||
} | ||
dim { | ||
dim_value: 5 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
output { | ||
name: "shape_output" | ||
type { | ||
tensor_type { | ||
elem_type: 7 | ||
shape { | ||
dim { | ||
dim_value: 3 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
opset_import { | ||
version: 15 | ||
} |
50 changes: 50 additions & 0 deletions
50
src/frontends/onnx/tests/models/shape_opset15_end_negative_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,50 @@ | ||
ir_version: 3 | ||
producer_name: "OpenVINO ONNX Frontend" | ||
graph { | ||
name: "test_shape15" | ||
node { | ||
input: "tensor" | ||
output: "shape_output" | ||
op_type: "Shape" | ||
attribute { | ||
name: "end" | ||
type: INT | ||
i: -1 | ||
} | ||
} | ||
input { | ||
name: "tensor" | ||
type { | ||
tensor_type { | ||
elem_type: 1 | ||
shape { | ||
dim { | ||
dim_value: 3 | ||
} | ||
dim { | ||
dim_value: 4 | ||
} | ||
dim { | ||
dim_value: 5 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
output { | ||
name: "shape_output" | ||
type { | ||
tensor_type { | ||
elem_type: 7 | ||
shape { | ||
dim { | ||
dim_value: 3 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
opset_import { | ||
version: 15 | ||
} |
50 changes: 50 additions & 0 deletions
50
src/frontends/onnx/tests/models/shape_opset15_end_negative_2.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,50 @@ | ||
ir_version: 3 | ||
producer_name: "OpenVINO ONNX Frontend" | ||
graph { | ||
name: "test_shape15" | ||
node { | ||
input: "tensor" | ||
output: "shape_output" | ||
op_type: "Shape" | ||
attribute { | ||
name: "end" | ||
type: INT | ||
i: -2 | ||
} | ||
} | ||
input { | ||
name: "tensor" | ||
type { | ||
tensor_type { | ||
elem_type: 1 | ||
shape { | ||
dim { | ||
dim_value: 3 | ||
} | ||
dim { | ||
dim_value: 4 | ||
} | ||
dim { | ||
dim_value: 5 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
output { | ||
name: "shape_output" | ||
type { | ||
tensor_type { | ||
elem_type: 7 | ||
shape { | ||
dim { | ||
dim_value: 3 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
opset_import { | ||
version: 15 | ||
} |
50 changes: 50 additions & 0 deletions
50
src/frontends/onnx/tests/models/shape_opset15_start_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,50 @@ | ||
ir_version: 3 | ||
producer_name: "OpenVINO ONNX Frontend" | ||
graph { | ||
name: "test_shape15" | ||
node { | ||
input: "tensor" | ||
output: "shape_output" | ||
op_type: "Shape" | ||
attribute { | ||
name: "start" | ||
type: INT | ||
i: 1 | ||
} | ||
} | ||
input { | ||
name: "tensor" | ||
type { | ||
tensor_type { | ||
elem_type: 1 | ||
shape { | ||
dim { | ||
dim_value: 3 | ||
} | ||
dim { | ||
dim_value: 4 | ||
} | ||
dim { | ||
dim_value: 5 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
output { | ||
name: "shape_output" | ||
type { | ||
tensor_type { | ||
elem_type: 7 | ||
shape { | ||
dim { | ||
dim_value: 3 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
opset_import { | ||
version: 15 | ||
} |
55 changes: 55 additions & 0 deletions
55
src/frontends/onnx/tests/models/shape_opset15_start_1_end_2.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,55 @@ | ||
ir_version: 3 | ||
producer_name: "OpenVINO ONNX Frontend" | ||
graph { | ||
name: "test_shape15" | ||
node { | ||
input: "tensor" | ||
output: "shape_output" | ||
op_type: "Shape" | ||
attribute { | ||
name: "end" | ||
type: INT | ||
i: 2 | ||
} | ||
attribute { | ||
name: "start" | ||
type: INT | ||
i: 1 | ||
} | ||
} | ||
input { | ||
name: "tensor" | ||
type { | ||
tensor_type { | ||
elem_type: 1 | ||
shape { | ||
dim { | ||
dim_value: 3 | ||
} | ||
dim { | ||
dim_value: 4 | ||
} | ||
dim { | ||
dim_value: 5 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
output { | ||
name: "shape_output" | ||
type { | ||
tensor_type { | ||
elem_type: 7 | ||
shape { | ||
dim { | ||
dim_value: 3 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
opset_import { | ||
version: 15 | ||
} |
55 changes: 55 additions & 0 deletions
55
src/frontends/onnx/tests/models/shape_opset15_start_1_end_negative_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,55 @@ | ||
ir_version: 3 | ||
producer_name: "OpenVINO ONNX Frontend" | ||
graph { | ||
name: "test_shape15" | ||
node { | ||
input: "tensor" | ||
output: "shape_output" | ||
op_type: "Shape" | ||
attribute { | ||
name: "end" | ||
type: INT | ||
i: -1 | ||
} | ||
attribute { | ||
name: "start" | ||
type: INT | ||
i: 1 | ||
} | ||
} | ||
input { | ||
name: "tensor" | ||
type { | ||
tensor_type { | ||
elem_type: 1 | ||
shape { | ||
dim { | ||
dim_value: 3 | ||
} | ||
dim { | ||
dim_value: 4 | ||
} | ||
dim { | ||
dim_value: 5 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
output { | ||
name: "shape_output" | ||
type { | ||
tensor_type { | ||
elem_type: 7 | ||
shape { | ||
dim { | ||
dim_value: 3 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
opset_import { | ||
version: 15 | ||
} |
Oops, something went wrong.