Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:birdwatcher:OpenWebUI
onnxruntime
onnxruntime-fix-string-conversion.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File onnxruntime-fix-string-conversion.patch of Package onnxruntime
diff --git a/onnxruntime/core/session/inference_session.cc b/onnxruntime/core/session/inference_session.cc index 5eed7c5c..c9ef2441 100644 --- a/onnxruntime/core/session/inference_session.cc +++ b/onnxruntime/core/session/inference_session.cc @@ -464,7 +464,12 @@ void InferenceSession::ConstructorCommon(const SessionOptions& session_options, const auto disabled_list = utils::SplitString(disabled_string, ";"); InlinedHashSet<std::string> disabled_rules_and_transformers; disabled_rules_and_transformers.reserve(disabled_list.size()); - disabled_rules_and_transformers.insert(disabled_list.cbegin(), disabled_list.cend()); + std::transform( + disabled_list.cbegin(), disabled_list.cend(), + std::inserter(disabled_rules_and_transformers, std::next(disabled_rules_and_transformers.begin())), + [](auto const& option){ + return std::string(option); + }); ORT_THROW_IF_ERROR(FilterEnabledOptimizers(std::move(disabled_rules_and_transformers))); } }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor