forked from openvinotoolkit/openvino
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ONNX][ONNX Editor] Generate an input with unknown shape and type for…
… operators without schema. (openvinotoolkit#5531)
- Loading branch information
Showing
4 changed files
with
238 additions
and
8 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
73 changes: 73 additions & 0 deletions
73
ngraph/test/models/onnx/model_editor/reference/unknown_input_value_info.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,73 @@ | ||
ir_version: 7 | ||
producer_name: "test_data_generator" | ||
graph { | ||
name: "No name" | ||
node { | ||
input: "X" | ||
output: "X2" | ||
name: "" | ||
op_type: "Relu" | ||
} | ||
node { | ||
input: "X2" | ||
output: "Y" | ||
name: "" | ||
op_type: "MaxPool" | ||
attribute { | ||
name: "strides" | ||
ints: 2 | ||
ints: 2 | ||
type: INTS | ||
} | ||
attribute { | ||
name: "pads" | ||
ints: 0 | ||
ints: 0 | ||
ints: 0 | ||
ints: 0 | ||
type: INTS | ||
} | ||
attribute { | ||
name: "kernel_shape" | ||
ints: 3 | ||
ints: 3 | ||
type: INTS | ||
} | ||
} | ||
|
||
input { | ||
name: "X" | ||
type { | ||
tensor_type { | ||
elem_type: 0 | ||
} | ||
} | ||
} | ||
|
||
output { | ||
name: "Y" | ||
type { | ||
tensor_type { | ||
elem_type: 1 | ||
shape { | ||
dim { | ||
dim_value: 1 | ||
} | ||
dim { | ||
dim_value: 64 | ||
} | ||
dim { | ||
dim_value: 55 | ||
} | ||
dim { | ||
dim_value: 55 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
opset_import { | ||
version: 13 | ||
} |
132 changes: 132 additions & 0 deletions
132
ngraph/test/models/onnx/model_editor/unknown_input_value_info.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,132 @@ | ||
ir_version: 7 | ||
producer_name: "test_data_generator" | ||
graph { | ||
name: "No_name" | ||
node { | ||
input: "A" | ||
input: "B" | ||
input: "C" | ||
output: "X" | ||
name: "" | ||
op_type: "Bongo" | ||
} | ||
node { | ||
input: "X" | ||
output: "X2" | ||
name: "" | ||
op_type: "Relu" | ||
} | ||
node { | ||
input: "X2" | ||
output: "Y" | ||
name: "" | ||
op_type: "MaxPool" | ||
attribute { | ||
name: "strides" | ||
ints: 2 | ||
ints: 2 | ||
type: INTS | ||
} | ||
attribute { | ||
name: "pads" | ||
ints: 0 | ||
ints: 0 | ||
ints: 0 | ||
ints: 0 | ||
type: INTS | ||
} | ||
attribute { | ||
name: "kernel_shape" | ||
ints: 3 | ||
ints: 3 | ||
type: INTS | ||
} | ||
} | ||
|
||
input { | ||
name: "A" | ||
type { | ||
tensor_type { | ||
elem_type: 1 | ||
shape { | ||
dim { | ||
dim_value: 1 | ||
} | ||
dim { | ||
dim_value: 3 | ||
} | ||
dim { | ||
dim_value: 224 | ||
} | ||
dim { | ||
dim_value: 224 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
input { | ||
name: "B" | ||
type { | ||
tensor_type { | ||
elem_type: 1 | ||
shape { | ||
dim { | ||
dim_value: 64 | ||
} | ||
dim { | ||
dim_value: 3 | ||
} | ||
dim { | ||
dim_value: 7 | ||
} | ||
dim { | ||
dim_value: 7 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
input { | ||
name: "C" | ||
type { | ||
tensor_type { | ||
elem_type: 1 | ||
shape { | ||
dim { | ||
dim_value: 64 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
output { | ||
name: "Y" | ||
type { | ||
tensor_type { | ||
elem_type: 1 | ||
shape { | ||
dim { | ||
dim_value: 1 | ||
} | ||
dim { | ||
dim_value: 64 | ||
} | ||
dim { | ||
dim_value: 55 | ||
} | ||
dim { | ||
dim_value: 55 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
opset_import { | ||
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