mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-27 03:11:28 +00:00
Disable InitProvidersSharedLibrary when training is enabled. (#8132)
This commit is contained in:
parent
7ed9f5fc90
commit
e083d207cf
1 changed files with 1 additions and 1 deletions
|
|
@ -1671,7 +1671,7 @@ void CreatePybindStateModule(py::module& m){
|
|||
addOrtValueMethods(m);
|
||||
addIoBindingMethods(m);
|
||||
|
||||
#if !defined(ORT_MINIMAL_BUILD) || defined(ORT_EXTENDED_MINIMAL_BUILD) || defined(ORT_MINIMAL_BUILD_CUSTOM_OPS)
|
||||
#if !defined(ENABLE_TRAINING) && (!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