• Adam Rogowiec's avatar
    [ONNX] Convert models to text format. (#2528) · 073e68fd
    Adam Rogowiec authored
    * Handle models in prototxt format.
    Signed-off-by: 's avatarAdam Rogowiec <adam.rogowiec@intel.com>
    
    * Convert Onnx models to text format.
    
    * Tool for conversion between protobuf ONNX models in binary and text format.
    Signed-off-by: 's avatarAdam Rogowiec <adam.rogowiec@intel.com>
    
    * Update ONNX test models text format.
    
    * Convert ONNX LSTM model to text format.
    
    * Rename and make second argument optional.
    
    * Unify models metadata.
    
    * Remove onnx binary models.
    
    * Review: fix comments.
    
    * Fix not yet updated models extension in UTs.
    
    * Add UT with binary protobuf models.
    
    * Clang format.
    
    * Remove failing UT in prototxt since it has problems with CI.
    
    * Inhibit logging protobuf errors.
    
    * Revert "Remove failing UT in prototxt since it has problems with CI."
    
    This reverts commit 94741a8c4594f3cc2ebdca428fa40b94a79240c2.
    
    * Remove LogSilencer from onnx importer api and remove respective UT.
    
    * Conversion script updates
    073e68fd
add_abc_initializers.prototxt 1.4 KB
ir_version: 3
producer_name: "nGraph ONNX Importer"
graph {
  node {
    output: "B"
    op_type: "Constant"
    attribute {
      name: "value"
      t {
        dims: 2
        dims: 2
        data_type: 1
        float_data: 1
        float_data: 2
        float_data: 3
        float_data: 4
        name: "const_tensor"
      }
      type: TENSOR
    }
  }
  node {
    input: "A"
    input: "B"
    output: "X"
    name: "add_node1"
    op_type: "Add"
  }
  node {
    input: "X"
    input: "C"
    output: "Y"
    name: "add_node2"
    op_type: "Add"
  }
  name: "test_graph"
  initializer {
    dims: 2
    dims: 2
    data_type: 1
    name: "A"
    raw_data: "\000\000\200?\000\000\000@\000\000@@\000\000\200@"
  }
  input {
    name: "A"
    type {
      tensor_type {
        elem_type: 1
        shape {
          dim {
            dim_value: 2
          }
          dim {
            dim_value: 2
          }
        }
      }
    }
  }
  input {
    name: "C"
    type {
      tensor_type {
        elem_type: 1
        shape {
          dim {
            dim_value: 2
          }
          dim {
            dim_value: 2
          }
        }
      }
    }
  }
  output {
    name: "Y"
    type {
      tensor_type {
        elem_type: 1
        shape {
          dim {
            dim_value: 2
          }
          dim {
            dim_value: 2
          }
        }
      }
    }
  }
}
opset_import {
  version: 4
}