From 2e1d0221c0813ff545aeba7291984ffb723d624b Mon Sep 17 00:00:00 2001 From: Chi Lo Date: Mon, 2 Dec 2024 23:20:39 +0000 Subject: [PATCH] add InitProviderOrtApi --- .../core/providers/tensorrt/tensorrt_execution_provider.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc b/onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc index 3224773cd2bda..9f7c12b6ad879 100644 --- a/onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc +++ b/onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc @@ -1727,6 +1727,7 @@ TensorrtExecutionProvider::TensorrtExecutionProvider(const TensorrtExecutionProv trt_version_ = getInferLibVersion(); CUDA_CALL_THROW(cudaRuntimeGetVersion(&cuda_version_)); + InitProviderOrtApi(); ort_version_ = Ort::GetVersionString(); LOGS_DEFAULT(VERBOSE) << "[TensorRT EP] TensorRT version is " << trt_version_;