Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

4.0 KB
Raw Blame
ir_version: 7
producer_name: "OpenVINO ONNX Frontend"
graph {
  name: "loop_seq_concat"
  node {
    output: "accum_init"
    op_type: "Constant"
    attribute {
      name: "value"
      t {
        dims: 1
        data_type: 1
        float_data: 0
        name: "accum_init_value"
      }
      type: TENSOR
    }
  }
  node {
    output: "seq_empty"
    op_type: "SequenceEmpty"
    attribute {
      name: "dtype"
      i: 1
      type: INT
    }
  }
  node {
    input: "trip_count"
    input: "cond_init"
    input: "accum_init"
    input: "seq_empty"
    output: "accum_final"
    output: "seq_output"
    op_type: "Loop"
    attribute {
      name: "body"
      g {
        name: "loop_body"
        node {
          input: "cond_in"
          output: "cond_out"
          op_type: "Identity"
        }
        node {
          input: "iter"
          output: "iter_f32"
          op_type: "Cast"
          attribute {
            name: "to"
            i: 1
            type: INT
          }
        }
        node {
          input: "iter_f32"
          input: "shape_1d"
          output: "tensor_1d"
          op_type: "Reshape"
        }
        node {
          input: "accum_in"
          input: "tensor_1d"
          output: "accum_out"
          op_type: "Add"
        }
        node {
          input: "seq_in"
          input: "tensor_1d"
          output: "seq_out"
          op_type: "SequenceInsert"
        }
        initializer {
          dims: 1
          data_type: 7
          int64_data: 1
          name: "shape_1d"
        }
        input {
          name: "iter"
          type {
            tensor_type {
              elem_type: 7
              shape {
              }
            }
          }
        }
        input {
          name: "cond_in"
          type {
            tensor_type {
              elem_type: 9
              shape {
              }
            }
          }
        }
        input {
          name: "accum_in"
          type {
            tensor_type {
              elem_type: 1
              shape {
                dim {
                  dim_value: 1
                }
              }
            }
          }
        }
        input {
          name: "seq_in"
          type {
            sequence_type {
              elem_type {
                tensor_type {
                  elem_type: 1
                  shape {
                    dim {
                      dim_value: 1
                    }
                  }
                }
              }
            }
          }
        }
        output {
          name: "cond_out"
          type {
            tensor_type {
              elem_type: 9
              shape {
              }
            }
          }
        }
        output {
          name: "accum_out"
          type {
            tensor_type {
              elem_type: 1
              shape {
                dim {
                  dim_value: 1
                }
              }
            }
          }
        }
        output {
          name: "seq_out"
          type {
            sequence_type {
              elem_type {
                tensor_type {
                  elem_type: 1
                  shape {
                    dim {
                      dim_value: 1
                    }
                  }
                }
              }
            }
          }
        }
      }
      type: GRAPH
    }
  }
  input {
    name: "trip_count"
    type {
      tensor_type {
        elem_type: 7
        shape {
        }
      }
    }
  }
  input {
    name: "cond_init"
    type {
      tensor_type {
        elem_type: 9
        shape {
        }
      }
    }
  }
  node {
    input: "seq_output"
    output: "output"
    op_type: "ConcatFromSequence"
    attribute {
      name: "axis"
      i: 1
      type: INT
    }
    attribute {
      name: "new_axis"
      i: 1
      type: INT
    }
  }
  output {
    name: "output"
    type {
      tensor_type {
        elem_type: 1
        shape {
        }
      }
    }
  }
}
opset_import {
  version: 14
}