Skip to content

Commit

Permalink
Update onnxruntime_pybind_state.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
chenduan-amd committed Sep 14, 2024
1 parent 4b3f4cc commit 310331a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions onnxruntime/python/onnxruntime_pybind_state.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1134,10 +1134,7 @@ std::unique_ptr<IExecutionProvider> CreateExecutionProviderInstance(
if (it != provider_options_map.end()) {
info = it->second;
}
for (const auto& option : session_options.config_options.configurations) {
auto key = std::string("ort_session_config.") + option.first;
const auto& value = option.second;
info[key] = value;
info["session_options"] = std::to_string((uintptr_t)(void*)session_options);
}

Check warning on line 1138 in onnxruntime/python/onnxruntime_pybind_state.cc

View workflow job for this annotation

GitHub Actions / Optional Lint C++

[cpplint] reported by reviewdog 🐶 Using C-style cast. Use reinterpret_cast<void*>(...) instead [readability/casting] [4] Raw Output: onnxruntime/python/onnxruntime_pybind_state.cc:1138: Using C-style cast. Use reinterpret_cast<void*>(...) instead [readability/casting] [4]
return onnxruntime::VitisAIProviderFactoryCreator::Create(info)->CreateProvider();
#endif
Expand Down

0 comments on commit 310331a

Please sign in to comment.