diff --git a/onnxruntime/python/onnxruntime_pybind_schema.cc b/onnxruntime/python/onnxruntime_pybind_schema.cc index e325d3a2a6..61d4feb182 100644 --- a/onnxruntime/python/onnxruntime_pybind_schema.cc +++ b/onnxruntime/python/onnxruntime_pybind_schema.cc @@ -50,7 +50,7 @@ void addGlobalSchemaFunctions(pybind11::module& m) { onnxruntime::MIGraphXProviderFactoryCreator::Create(0), #endif #ifdef USE_VITISAI - onnxruntime::VitisAIProviderFactoryCreator::Create(), + onnxruntime::VitisAIProviderFactoryCreator::Create(ProviderOptions{}), #endif #ifdef USE_ACL onnxruntime::ACLProviderFactoryCreator::Create(0), diff --git a/onnxruntime/python/onnxruntime_pybind_state.cc b/onnxruntime/python/onnxruntime_pybind_state.cc index 6f9e277f6a..cf709e508d 100644 --- a/onnxruntime/python/onnxruntime_pybind_state.cc +++ b/onnxruntime/python/onnxruntime_pybind_state.cc @@ -762,7 +762,7 @@ std::unique_ptr CreateExecutionProviderInstance( } else if (type == kVitisAIExecutionProvider) { #if USE_VITISAI const auto it = provider_options_map.find(type); - if (it != provider_options_map.end()) { + if (it == provider_options_map.end()) { LOGS_DEFAULT(FATAL) << "cannot find provider options for VitisAIExecutionProvider"; } const auto& vitis_option_map = it->second;