Skip to content

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

1.8 KB
Raw Blame
ir_version: 3
producer_name: "OpenVINO ONNX Frontend"
graph {
  node {
    input: "data"
    input: "scale"
    input: "zero_point"
    output: "quantization_out"
    name: "quantization"
    op_type: "QuantizeLinear"
    attribute {
      name: "axis"
      i: 1
      type: INT
    }
  }
  node {
    input: "quantization_out"
    input: "scale"
    input: "zero_point"
    output: "dequantization_out"
    name: "dequantization"
    op_type: "DequantizeLinear"
  }
  node {
    input: "dequantization_out"
    input: "x"
    output: "mul_out"
    name: "mul"
    op_type: "Mul"
  }

  name: "test_graph"
  input {
    name: "data"
    type {
      tensor_type {
        elem_type: 1
        shape {
          dim {
            dim_value: 3
          }
          dim {
            dim_value: 3
          }
        }
      }
    }
  }
  input {
    name: "scale"
    type {
      tensor_type {
        elem_type: 1
        shape {
          dim {
            dim_value: 3
          }
        }
      }
    }
  }
  input {
    name: "zero_point"
    type {
      tensor_type {
        elem_type: 3
        shape {
          dim {
            dim_value: 3
          }
        }
      }
    }
  }
  input {
    name: "x"
    type {
      tensor_type {
        elem_type: 1
        shape {
          dim {
            dim_value: 1
          }
        }
      }
    }
  }

  output {
    name: "mul_out"
    type {
      tensor_type {
        elem_type: 1
        shape {
          dim {
            dim_value: 3
          }
          dim {
            dim_value: 3
          }
        }
      }
    }
  }
  initializer {
    dims: 3
    data_type: 1
    name: "scale"
    float_data: 2
    float_data: 3
    float_data: 4
  }
  initializer {
    dims: 3
    data_type: 2
    name: "zero_point"
    int32_data: 10
    int32_data: 20
    int32_data: 30
  }
}
opset_import {
  version: 13
}