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 Importer] Resolved problem with incorrect opset version set in …
…subgraph (openvinotoolkit#2959)
- Loading branch information
Mateusz Bencer
authored
Nov 10, 2020
1 parent
0a71ada
commit 0baad06
Showing
9 changed files
with
209 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
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
158 changes: 158 additions & 0 deletions
158
ngraph/test/models/onnx/loop/loop_2d_mul_opset1.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,158 @@ | ||
ir_version: 6 | ||
producer_name: "nGraph ONNX Importer" | ||
graph { | ||
name: "basic loop" | ||
node { | ||
input: "trip_count" | ||
input: "" | ||
input: "a_init" | ||
output: "a_final" | ||
output: "a_values" | ||
op_type: "Loop" | ||
attribute { | ||
name: "body" | ||
g { | ||
node { | ||
input: "a_in" | ||
input: "b" | ||
output: "current_a" | ||
name: "loop_body_mul" | ||
op_type: "Mul" | ||
} | ||
node { | ||
input: "cond_in" | ||
output: "cond_out" | ||
name: "cond_identity" | ||
op_type: "Identity" | ||
} | ||
node { | ||
input: "current_a" | ||
output: "a_out" | ||
name: "output_accumulator" | ||
op_type: "Identity" | ||
} | ||
name: "simple add" | ||
initializer { | ||
dims: 1 | ||
dims: 2 | ||
data_type: 1 | ||
float_data: 1 | ||
float_data: 1 | ||
name: "b" | ||
} | ||
input { | ||
name: "i" | ||
type { | ||
tensor_type { | ||
elem_type: 7 | ||
shape { | ||
} | ||
} | ||
} | ||
} | ||
input { | ||
name: "cond_in" | ||
type { | ||
tensor_type { | ||
elem_type: 9 | ||
shape { | ||
} | ||
} | ||
} | ||
} | ||
input { | ||
name: "a_in" | ||
type { | ||
tensor_type { | ||
elem_type: 1 | ||
shape { | ||
dim { | ||
dim_value: 1 | ||
} | ||
dim { | ||
dim_value: 2 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
output { | ||
name: "cond_out" | ||
type { | ||
tensor_type { | ||
elem_type: 9 | ||
shape { | ||
} | ||
} | ||
} | ||
} | ||
output { | ||
name: "current_a" | ||
type { | ||
tensor_type { | ||
elem_type: 1 | ||
shape { | ||
} | ||
} | ||
} | ||
} | ||
output { | ||
name: "a_out" | ||
type { | ||
tensor_type { | ||
elem_type: 1 | ||
shape { | ||
} | ||
} | ||
} | ||
} | ||
} | ||
type: GRAPH | ||
} | ||
} | ||
initializer { | ||
dims: 1 | ||
data_type: 7 | ||
int64_data: 3 | ||
name: "trip_count" | ||
} | ||
input { | ||
name: "a_init" | ||
type { | ||
tensor_type { | ||
elem_type: 1 | ||
shape { | ||
dim { | ||
dim_value: 1 | ||
} | ||
dim { | ||
dim_value: 2 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
output { | ||
name: "a_final" | ||
type { | ||
tensor_type { | ||
elem_type: 1 | ||
shape { | ||
} | ||
} | ||
} | ||
} | ||
output { | ||
name: "a_values" | ||
type { | ||
tensor_type { | ||
elem_type: 1 | ||
shape { | ||
} | ||
} | ||
} | ||
} | ||
} | ||
opset_import { | ||
version: 1 | ||
} |
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