Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
chilo-ms committed Sep 20, 2023
1 parent 2b6429f commit 8c38ebd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ common::Status CreateTensorRTCustomOpDomainList(std::vector<OrtCustomOpDomain*>&
// 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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace onnxruntime {

common::Status LoadDynamicLibrary(onnxruntime::PathString library_name);
common::Status CreateTensorRTCustomOpDomainList(std::vector<OrtCustomOpDomain*>& 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<OrtCustomOpDomain*>& custom_op_domain_list);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8c38ebd

Please sign in to comment.