210 lines
3.9 KiB
Plaintext
210 lines
3.9 KiB
Plaintext
ir_version: 6
|
|
producer_name: "nGraph ONNX Importer"
|
|
graph {
|
|
name: "if inside loop"
|
|
node {
|
|
input: "scale"
|
|
input: "scale"
|
|
name: "mul_node"
|
|
op_type: "Mul"
|
|
output: "b"
|
|
}
|
|
node {
|
|
input: "trip_count"
|
|
input: ""
|
|
input: "a_init"
|
|
output: "a_final"
|
|
output: "a_values"
|
|
op_type: "Loop"
|
|
attribute {
|
|
name: "body"
|
|
type: GRAPH
|
|
g {
|
|
name: "loop body"
|
|
node {
|
|
output: "zero"
|
|
op_type: "Constant"
|
|
attribute {
|
|
name: "value"
|
|
type: TENSOR
|
|
t {
|
|
dims: 1
|
|
data_type: 7
|
|
int64_data: 0
|
|
}
|
|
}
|
|
}
|
|
node {
|
|
input: "i"
|
|
input: "zero"
|
|
output: "first_iter"
|
|
name: "equal"
|
|
op_type: "Equal"
|
|
}
|
|
node {
|
|
input: "first_iter"
|
|
output: "current_a"
|
|
name: "current_a"
|
|
op_type: "If"
|
|
attribute {
|
|
name: "then_branch"
|
|
type: GRAPH
|
|
g {
|
|
name: "then_branch"
|
|
node {
|
|
input: "b"
|
|
input: "a_in"
|
|
output: "a_out"
|
|
name: "loop_body_add"
|
|
op_type: "Add"
|
|
}
|
|
output {
|
|
name: "a_out"
|
|
type {
|
|
tensor_type {
|
|
elem_type: 1
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
attribute {
|
|
name: "else_branch"
|
|
type: GRAPH
|
|
g {
|
|
name: "else_branch"
|
|
node {
|
|
input: "b"
|
|
input: "a_in"
|
|
output: "a_out"
|
|
name: "loop_body_mul"
|
|
op_type: "Mul"
|
|
}
|
|
output {
|
|
name: "a_out"
|
|
type {
|
|
tensor_type {
|
|
elem_type: 1
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
node {
|
|
input: "cond"
|
|
output: "cond_out"
|
|
name: "cond_identity"
|
|
op_type: "Identity"
|
|
}
|
|
node {
|
|
input: "current_a"
|
|
output: "a_out"
|
|
name: "output_accumulator"
|
|
op_type: "Identity"
|
|
}
|
|
input {
|
|
name: "i"
|
|
type {
|
|
tensor_type {
|
|
elem_type: 7
|
|
shape {
|
|
dim {
|
|
dim_value: 1
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
input {
|
|
name: "cond"
|
|
type {
|
|
tensor_type {
|
|
elem_type: 9
|
|
}
|
|
}
|
|
}
|
|
input {
|
|
name: "a_in"
|
|
type {
|
|
tensor_type {
|
|
elem_type: 1
|
|
}
|
|
}
|
|
}
|
|
output {
|
|
name: "cond_out"
|
|
type {
|
|
tensor_type {
|
|
elem_type: 9
|
|
}
|
|
}
|
|
}
|
|
output {
|
|
name: "current_a"
|
|
type {
|
|
tensor_type {
|
|
elem_type: 1
|
|
}
|
|
}
|
|
}
|
|
output {
|
|
name: "a_out"
|
|
type {
|
|
tensor_type {
|
|
elem_type: 1
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
initializer {
|
|
dims: 1
|
|
data_type: 7
|
|
int64_data: 3
|
|
name: "trip_count"
|
|
}
|
|
initializer {
|
|
dims: 1
|
|
data_type: 1
|
|
float_data: 2
|
|
name: "scale"
|
|
}
|
|
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
|
|
}
|
|
}
|
|
}
|
|
output {
|
|
name: "a_values"
|
|
type {
|
|
tensor_type {
|
|
elem_type: 1
|
|
}
|
|
}
|
|
}
|
|
}
|
|
opset_import {
|
|
version: 11
|
|
}
|