|
10 | 10 | #include "core/common/inlined_containers.h"
|
11 | 11 | #include "core/common/path_string.h"
|
12 | 12 | #include "core/common/string_helper.h"
|
| 13 | + |
13 | 14 | #include "core/framework/allocator_utils.h"
|
14 | 15 | #include "core/framework/compute_capability.h"
|
15 | 16 | #include "core/framework/config_options.h"
|
@@ -2049,15 +2050,15 @@ std::shared_ptr<IExecutionProviderFactory> NvProviderFactoryCreator::Create(int
|
2049 | 2050 | }
|
2050 | 2051 |
|
2051 | 2052 | std::shared_ptr<IExecutionProviderFactory> NvProviderFactoryCreator::Create(
|
2052 |
| - const ProviderOptions& provider_options,, const SessionOptions* session_options) try { |
2053 |
| - const ConfigOptions* config_options = nullptr; |
2054 |
| - if (session_options != nullptr) { |
2055 |
| - config_options = &session_options->config_options; |
2056 |
| - } |
| 2053 | + const ProviderOptions& provider_options, const SessionOptions* session_options) try { |
| 2054 | + const ConfigOptions* config_options = nullptr; |
| 2055 | + if (session_options != nullptr) { |
| 2056 | + config_options = &session_options->config_options; |
| 2057 | + } |
2057 | 2058 |
|
2058 |
| - std::array<const void*, 2> configs_array = {&provider_options, config_options}; |
2059 |
| - const void* arg = reinterpret_cast<const void*>(&configs_array); |
2060 |
| - return s_library_nv.Get().CreateExecutionProviderFactory(arg); |
| 2059 | + std::array<const void*, 2> configs_array = {&provider_options, config_options}; |
| 2060 | + const void* arg = reinterpret_cast<const void*>(&configs_array); |
| 2061 | + return s_library_nv.Get().CreateExecutionProviderFactory(arg); |
2061 | 2062 | } catch (const std::exception& exception) {
|
2062 | 2063 | // Will get an exception when fail to load EP library.
|
2063 | 2064 | LOGS_DEFAULT(ERROR) << exception.what();
|
|
0 commit comments