mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-29 23:06:41 +00:00
* Add intermediate header between the ORT code and pybind11 to workaround an issue with VS2022 debug builds by making sure corecrt.h is included first. This avoids the _STL_ASSERT macro being defined in an incompatible way for a debug build by pybind including the python headers with _DEBUG temporarily undefined . See #9735 for details.
14 lines
443 B
C++
14 lines
443 B
C++
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// Licensed under the MIT License.
|
|
|
|
#include "onnxruntime_pybind.h" // must use this for the include of <pybind11/pybind11.h>
|
|
|
|
namespace onnxruntime {
|
|
namespace python {
|
|
|
|
void addGlobalMethods(py::module& m, Environment& env);
|
|
void addObjectMethods(py::module& m, Environment& env);
|
|
void addOrtValueMethods(pybind11::module& m);
|
|
|
|
} // namespace python
|
|
} // namespace onnxruntime
|