@@ -454,14 +454,15 @@ struct OpenVINO_Provider : Provider {
454
454
std::unique_ptr<IExecutionProvider>& ep) override {
455
455
// Check if no devices are provided
456
456
if (num_devices == 0 ) {
457
- return Status (common::ONNXRUNTIME, ORT_EP_FAIL, " No devices provided to CreateEp " );
457
+ return Status (common::ONNXRUNTIME, ORT_EP_FAIL, " No devices provided to CreateIExecutionProvider " );
458
458
}
459
459
460
- // For provider options that we don't support anymore, give some guidance & examples
461
- // about how to make use of the option through load_config.
460
+ // For provider options that we don't support directly but are still supported through load_config,
461
+ // give some specific guidance & example about how to make use of the option through load_config.
462
462
const std::vector<std::pair<std::string, std::string>> block_and_advise_entries = {
463
463
{" cache_dir" , " \" CACHE_DIR\" : \" <filesystem_path>\" " },
464
464
{" precision" , " \" INFERENCE_PRECISION_HINT\" : \" F32\" " },
465
+ {" num_of_threads" , " \" INFERENCE_NUM_THREADS\" : \" 1\" " },
465
466
{" num_streams" , " \" NUM_STREAMS\" : \" 1\" " },
466
467
{" model_priority" , " \" MODEL_PRIORITY\" : \" LOW\" " },
467
468
{" enable_opencl_throttling" , " \" GPU\" : {\" PLUGIN_THROTTLE\" : \" 1\" }" },
@@ -480,7 +481,7 @@ struct OpenVINO_Provider : Provider {
480
481
481
482
// For the rest of the disallowed provider options, give a generic error message.
482
483
const std::vector<std::string> blocked_provider_keys = {
483
- " device_type" , " device_id" , " device_luid" , " context" , " num_of_threads " , " disable_dynamic_shapes" };
484
+ " device_type" , " device_id" , " device_luid" , " context" , " disable_dynamic_shapes" };
484
485
485
486
for (const auto & key : blocked_provider_keys) {
486
487
if (provider_options.find (key) != provider_options.end ()) {
0 commit comments