From 8c38ebdbc290e1b06f0c23f2709b0014c7c44c27 Mon Sep 17 00:00:00 2001 From: Chi Lo Date: Wed, 20 Sep 2023 22:52:14 +0000 Subject: [PATCH] fix format --- .../tensorrt/tensorrt_execution_provider_custom_ops.cc | 2 +- .../tensorrt/tensorrt_execution_provider_custom_ops.h | 2 +- .../tensorrt/tensorrt_execution_provider_info.cc | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/onnxruntime/core/providers/tensorrt/tensorrt_execution_provider_custom_ops.cc b/onnxruntime/core/providers/tensorrt/tensorrt_execution_provider_custom_ops.cc index fe85541a065a4..4e466a5d568a6 100644 --- a/onnxruntime/core/providers/tensorrt/tensorrt_execution_provider_custom_ops.cc +++ b/onnxruntime/core/providers/tensorrt/tensorrt_execution_provider_custom_ops.cc @@ -34,7 +34,7 @@ common::Status CreateTensorRTCustomOpDomainList(std::vector& // When the TRT plugin library is loaded, the global static object is created and the plugin is registered to TRT registry. // This is done through macro, for example, REGISTER_TENSORRT_PLUGIN(VisionTransformerPluginCreator). // extra_plugin_lib_paths has the format of "path_1;path_2....;path_n" - static bool is_loaded = false; + static bool is_loaded = false; if (!extra_plugin_lib_paths.empty() && !is_loaded) { std::stringstream extra_plugin_libs(extra_plugin_lib_paths); std::string lib; diff --git a/onnxruntime/core/providers/tensorrt/tensorrt_execution_provider_custom_ops.h b/onnxruntime/core/providers/tensorrt/tensorrt_execution_provider_custom_ops.h index 232ec6d3b5799..35bd38d818979 100644 --- a/onnxruntime/core/providers/tensorrt/tensorrt_execution_provider_custom_ops.h +++ b/onnxruntime/core/providers/tensorrt/tensorrt_execution_provider_custom_ops.h @@ -14,7 +14,7 @@ namespace onnxruntime { common::Status LoadDynamicLibrary(onnxruntime::PathString library_name); common::Status CreateTensorRTCustomOpDomainList(std::vector& domain_list, const std::string extra_plugin_lib_paths); -common::Status CreateTensorRTCustomOpDomainList(TensorrtExecutionProviderInfo& info); +common::Status CreateTensorRTCustomOpDomainList(TensorrtExecutionProviderInfo& info); void ReleaseTensorRTCustomOpDomain(OrtCustomOpDomain* domain); void ReleaseTensorRTCustomOpDomainList(std::vector& custom_op_domain_list); diff --git a/onnxruntime/core/providers/tensorrt/tensorrt_execution_provider_info.cc b/onnxruntime/core/providers/tensorrt/tensorrt_execution_provider_info.cc index 70a080b788031..cb7a568d09130 100644 --- a/onnxruntime/core/providers/tensorrt/tensorrt_execution_provider_info.cc +++ b/onnxruntime/core/providers/tensorrt/tensorrt_execution_provider_info.cc @@ -193,12 +193,12 @@ ProviderOptions TensorrtExecutionProviderInfo::ToProviderOptions(const OrtTensor * Please note that it will reset the OrtTensorRTProviderOptionsV2 instance first and then set up the provided provider options * See TensorrtExecutionProviderInfo::FromProviderOptions() for more details. This function will be called by the C API UpdateTensorRTProviderOptions() also. * - * \param provider_options - a pointer to OrtTensorRTProviderOptionsV2 instance - * \param options - a reference to ProviderOptions instance - * \param string_copy - if it's true, it uses strncpy() to copy 'provider option' string from ProviderOptions instance to where the 'provider option' const char pointer in OrtTensorRTProviderOptionsV2 instance points to. + * \param provider_options - a pointer to OrtTensorRTProviderOptionsV2 instance + * \param options - a reference to ProviderOptions instance + * \param string_copy - if it's true, it uses strncpy() to copy 'provider option' string from ProviderOptions instance to where the 'provider option' const char pointer in OrtTensorRTProviderOptionsV2 instance points to. * it it's false, it only saves the pointer and no strncpy(). - * - * Note: If there is strncpy involved, please remember to deallocate or simply call C API ReleaseTensorRTProviderOptions. + * + * Note: If there is strncpy involved, please remember to deallocate or simply call C API ReleaseTensorRTProviderOptions. */ void TensorrtExecutionProviderInfo::UpdateProviderOptions(void* provider_options, const ProviderOptions& options, bool string_copy) { if (provider_options == nullptr) {