Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
chilo-ms committed Sep 20, 2023
1 parent 52304cb commit 2b6429f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onnxruntime/core/session/provider_bridge_ort.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1787,7 +1787,7 @@ ORT_API_STATUS_IMPL(OrtApis::SessionOptionsAppendExecutionProvider_TensorRT_V2,
options->provider_factories.push_back(factory);

std::vector<OrtCustomOpDomain*> custom_op_domains;
std::string extra_plugin_lib_paths = (tensorrt_options == nullptr) ? "" : tensorrt_options->trt_extra_plugin_lib_paths;
std::string extra_plugin_lib_paths = (tensorrt_options == nullptr || tensorrt_options->trt_extra_plugin_lib_paths == nullptr) ? "" : tensorrt_options->trt_extra_plugin_lib_paths;
onnxruntime::ProviderInfo_TensorRT& provider_info = onnxruntime::GetProviderInfo_TensorRT();
provider_info.GetTensorRTCustomOpDomainList(custom_op_domains, extra_plugin_lib_paths);
for (auto ptr : custom_op_domains) {
Expand Down

0 comments on commit 2b6429f

Please sign in to comment.