15
15
namespace onnxruntime {
16
16
namespace openvino_ep {
17
17
void ParseConfigOptions (ProviderInfo& pi ) {
18
- if (pi .config_options == NULL )
18
+ if (pi .config_options == NULL )
19
19
return ;
20
20
21
21
pi .so_disable_cpu_ep_fallback = pi .config_options ->GetConfigOrDefault (kOrtSessionOptionsDisableCPUEPFallback , " 0" ) == " 1" ;
@@ -29,7 +29,6 @@ void ParseConfigOptions(ProviderInfo& pi) {
29
29
map[" NPU_COMPILATION_MODE_PARAMS" ] = " enable-wd-blockarg-input=true compute-layers-with-higher-precision=Sqrt,Power,ReduceSum" ;
30
30
pi .load_config [" NPU" ] = std::move (map);
31
31
}
32
-
33
32
}
34
33
35
34
void * ParseUint64 (const ProviderOptions& provider_options, std::string option_name) {
@@ -204,7 +203,7 @@ struct OpenVINO_Provider : Provider {
204
203
const ProviderOptions* provider_options_ptr = reinterpret_cast <ProviderOptions*>(pointers_array[0 ]);
205
204
const ConfigOptions* config_options = reinterpret_cast <ConfigOptions*>(pointers_array[1 ]);
206
205
207
- if (provider_options_ptr == NULL ) {
206
+ if (provider_options_ptr == NULL ) {
208
207
LOGS_DEFAULT (ERROR) << " [OpenVINO EP] Passed NULL ProviderOptions to CreateExecutionProviderFactory()" ;
209
208
return nullptr ;
210
209
}
@@ -256,7 +255,7 @@ struct OpenVINO_Provider : Provider {
256
255
257
256
for (auto & [key, value] : json_config.items ()) {
258
257
ov::AnyMap inner_map;
259
- std::unordered_set <std::string> valid_ov_devices = {" CPU" , " GPU" , " NPU" , " AUTO" , " HETERO" , " MULTI" };
258
+ std::set <std::string> valid_ov_devices = {" CPU" , " GPU" , " NPU" , " AUTO" , " HETERO" , " MULTI" };
260
259
// Ensure the key is one of "CPU", "GPU", or "NPU"
261
260
if (valid_ov_devices.find (key) == valid_ov_devices.end ()) {
262
261
LOGS_DEFAULT (WARNING) << " Unsupported device key: " << key << " . Skipping entry.\n " ;
0 commit comments