Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions onnxruntime/core/session/provider_bridge_ort.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1850,6 +1850,10 @@ Status ProviderLibrary::Load() {
ORT_RETURN_IF_ERROR(Env::Default().LoadDynamicLibrary(filename_, false, &handle_));
} else {
auto full_path = Env::Default().GetRuntimePath() + filename_;
if (!std::filesystem::exists(full_path)) {
// If library is not found in the runtime path, try letting the OS loader find it.
full_path = filename_;
}
ORT_RETURN_IF_ERROR(Env::Default().LoadDynamicLibrary(full_path, false, &handle_));
}

Expand Down
Loading