From 1356215bd0483ce6fe329e8f5a4f98df0cc7d7de Mon Sep 17 00:00:00 2001 From: edgchen1 <18449977+edgchen1@users.noreply.github.com> Date: Tue, 28 Apr 2020 08:41:37 -0700 Subject: [PATCH] Fix build issues in the Python Packaging pipelines. (#3725) --- onnxruntime/python/onnxruntime_pybind_mlvalue.cc | 3 --- onnxruntime/python/onnxruntime_pybind_state.cc | 6 ++---- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/onnxruntime/python/onnxruntime_pybind_mlvalue.cc b/onnxruntime/python/onnxruntime_pybind_mlvalue.cc index 5a0d9b32db..4d656dd4a3 100644 --- a/onnxruntime/python/onnxruntime_pybind_mlvalue.cc +++ b/onnxruntime/python/onnxruntime_pybind_mlvalue.cc @@ -1,9 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// needs to be included first to get around onnxruntime\cmake\external\onnx\onnx/common/constants.h(14): error C2513: 'bool': no variable declared before '=' -#include "core/framework/tensorprotoutils.h" - #include "onnxruntime_pybind_mlvalue.h" #define NO_IMPORT_ARRAY diff --git a/onnxruntime/python/onnxruntime_pybind_state.cc b/onnxruntime/python/onnxruntime_pybind_state.cc index 5b895631e6..b7b0bc0b4f 100644 --- a/onnxruntime/python/onnxruntime_pybind_state.cc +++ b/onnxruntime/python/onnxruntime_pybind_state.cc @@ -1,9 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// needs to be included first to get around onnxruntime\cmake\external\onnx\onnx/common/constants.h(14): error C2513: 'bool': no variable declared before '=' -#include "core/framework/tensorprotoutils.h" - #include "python/onnxruntime_pybind_exceptions.h" #include "python/onnxruntime_pybind_mlvalue.h" #include "python/onnxruntime_pybind_state_common.h" @@ -14,6 +11,7 @@ #include "core/framework/data_transfer_utils.h" #include "core/framework/data_types_internal.h" +#include "core/framework/tensorprotoutils.h" #include "core/graph/graph_viewer.h" #include "core/common/logging/logging.h" #include "core/common/logging/severity.h" @@ -1019,4 +1017,4 @@ onnxruntime::Environment& get_env(){ } } // namespace python -} // namespace onnxruntime \ No newline at end of file +} // namespace onnxruntime