mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-03 03:58:54 +00:00
Fix build error when using '--build_minimal extended' and '--build_wheel' build.py options. (#9979)
This commit is contained in:
parent
a7abd541c7
commit
41fd745996
1 changed files with 1 additions and 3 deletions
|
|
@ -1502,9 +1502,7 @@ void CreateInferencePybindStateModule(py::module& m) {
|
|||
addSparseTensorMethods(m);
|
||||
addIoBindingMethods(m);
|
||||
|
||||
#if !defined(__APPLE__) && \
|
||||
(!defined(ORT_MINIMAL_BUILD) || defined(ORT_EXTENDED_MINIMAL_BUILD) || defined(ORT_MINIMAL_BUILD_CUSTOM_OPS))
|
||||
Ort::SessionOptions tmp_options;
|
||||
#if !defined(__APPLE__) && !defined(ORT_MINIMAL_BUILD)
|
||||
if (!InitProvidersSharedLibrary()) {
|
||||
const logging::Logger& default_logger = logging::LoggingManager::DefaultLogger();
|
||||
LOGS(default_logger, WARNING) << "Init provider bridge failed.";
|
||||
|
|
|
|||
Loading…
Reference in a new issue