Unverified Commit 7f65c7db authored by Scott Cyphers's avatar Scott Cyphers Committed by GitHub

Merge pull request #3257 from NervanaSystems/mbencer/UpdateOnnx1.5

[ONNX] Update ONNX version to 1.5.0
parents 1d98a079 575a79dd
......@@ -21,7 +21,7 @@ include(ExternalProject)
# ONNX.proto definition version
#------------------------------------------------------------------------------
set(ONNX_VERSION 1.3.0)
set(ONNX_VERSION 1.5.0)
#------------------------------------------------------------------------------
# Download and install libonnx ...
......@@ -30,6 +30,9 @@ set(ONNX_VERSION 1.3.0)
set(ONNX_GIT_REPO_URL https://github.com/onnx/onnx.git)
set(ONNX_GIT_BRANCH rel-${ONNX_VERSION})
add_definitions(-DONNX_BUILD_SHARED_LIBS=ON)
add_definitions(-DONNX_ML=ON)
ExternalProject_Add(
ext_onnx
PREFIX onnx
......@@ -58,8 +61,8 @@ ExternalProject_Add(
ExternalProject_Get_Property(ext_onnx SOURCE_DIR BINARY_DIR)
set(ONNX_INCLUDE_DIR ${SOURCE_DIR}/onnx)
set(ONNX_PROTO_INCLUDE_DIR ${BINARY_DIR}/onnx)
set(ONNX_INCLUDE_DIR ${SOURCE_DIR})
set(ONNX_PROTO_INCLUDE_DIR ${BINARY_DIR})
if (WIN32)
set(ONNX_LIBRARY ${BINARY_DIR}/${CMAKE_BUILD_TYPE}/onnx.lib)
set(ONNX_PROTO_LIBRARY ${BINARY_DIR}/${CMAKE_BUILD_TYPE}/onnx_proto.lib)
......
......@@ -16,7 +16,7 @@
#pragma once
#include <onnx-ml.pb.h>
#include <onnx/onnx_pb.h>
#include "ngraph/except.hpp"
#include "tensor.hpp"
......
......@@ -16,7 +16,7 @@
#pragma once
#include <onnx-ml.pb.h>
#include <onnx/onnx_pb.h>
#include <string>
#include <vector>
......
......@@ -14,7 +14,7 @@
// limitations under the License.
//*****************************************************************************
#include <onnx-ml.pb.h>
#include <onnx/onnx_pb.h>
#include "model.hpp"
#include "ngraph/log.hpp"
......
......@@ -16,7 +16,7 @@
#pragma once
#include <onnx-ml.pb.h>
#include <onnx/onnx_pb.h>
#include <ostream>
#include <string>
#include <unordered_map>
......
......@@ -14,7 +14,7 @@
// limitations under the License.
//*****************************************************************************
#include <onnx-ml.pb.h>
#include <onnx/onnx_pb.h>
#include "attribute.hpp"
#include "graph.hpp"
......
......@@ -16,7 +16,7 @@
#pragma once
#include <onnx-ml.pb.h>
#include <onnx/onnx_pb.h>
#include <utility>
#include <vector>
......
......@@ -16,7 +16,7 @@
#pragma once
#include <onnx-ml.pb.h>
#include <onnx/onnx_pb.h>
#include "ngraph/op/constant.hpp"
#include "ngraph/op/parameter.hpp"
......
......@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//*****************************************************************************
#include <onnx-ml.pb.h> // onnx types
#include <onnx/onnx_pb.h> // onnx types
#include "common.hpp"
......
......@@ -15,7 +15,7 @@
//*****************************************************************************
#include <cstdlib> // std::size_t, std::uintptr_t
#include <onnxifi.h>
#include <onnx/onnxifi.h>
#include <stdexcept> // std::invalid_agrument, std::out_of_rage
#include "backend.hpp"
......
......@@ -19,7 +19,7 @@
#include <cstddef> // std::size_t, std::uintptr_t
#include <map> // std::map
#include <mutex> // std::mutex
#include <onnxifi.h>
#include <onnx/onnxifi.h>
#include "backend.hpp"
#include "ngraph/runtime/backend.hpp"
......
......@@ -16,7 +16,7 @@
#pragma once
#include <onnxifi.h>
#include <onnx/onnxifi.h>
namespace ngraph
{
......
......@@ -16,7 +16,7 @@
#include <cstddef>
#include <cstdint>
#include <onnxifi.h>
#include <onnx/onnxifi.h>
#include <stdexcept>
#include "backend_manager.hpp"
......
......@@ -17,7 +17,7 @@
#pragma once
#include <memory>
#include <onnxifi.h>
#include <onnx/onnxifi.h>
#include "ngraph/runtime/backend.hpp"
#include "ngraph/runtime/tensor.hpp"
......
......@@ -17,7 +17,7 @@
#include <cstring>
#include <gtest/gtest.h>
#include <onnxifi.h>
#include <onnx/onnxifi.h>
#include "ngraph/runtime/backend_manager.hpp"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment