mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-30 20:18:08 +00:00
Fix mac shared_provider warning (#8153)
This commit is contained in:
parent
a41d0db43c
commit
9618b6ba62
1 changed files with 3 additions and 2 deletions
|
|
@ -1619,7 +1619,7 @@ static struct {
|
|||
void addObjectMethodsForTraining(py::module& m);
|
||||
#endif
|
||||
|
||||
void CreatePybindStateModule(py::module& m){
|
||||
void CreatePybindStateModule(py::module& m) {
|
||||
m.doc() = "pybind11 stateful interface to ONNX runtime";
|
||||
RegisterExceptions(m);
|
||||
|
||||
|
|
@ -1680,7 +1680,8 @@ void CreatePybindStateModule(py::module& m){
|
|||
addOrtValueMethods(m);
|
||||
addIoBindingMethods(m);
|
||||
|
||||
#if !defined(ENABLE_TRAINING) && (!defined(ORT_MINIMAL_BUILD) || defined(ORT_EXTENDED_MINIMAL_BUILD) || defined(ORT_MINIMAL_BUILD_CUSTOM_OPS))
|
||||
#if !defined(ENABLE_TRAINING) && !defined(__APPLE__) && \
|
||||
(!defined(ORT_MINIMAL_BUILD) || defined(ORT_EXTENDED_MINIMAL_BUILD) || defined(ORT_MINIMAL_BUILD_CUSTOM_OPS))
|
||||
Ort::SessionOptions tmp_options;
|
||||
if (!InitProvidersSharedLibrary()) {
|
||||
const logging::Logger& default_logger = logging::LoggingManager::DefaultLogger();
|
||||
|
|
|
|||
Loading…
Reference in a new issue