From 28b550f091d9abfad12dd9ae9b3d85a829afdbeb Mon Sep 17 00:00:00 2001 From: zz002 Date: Fri, 6 Sep 2024 14:06:33 -0700 Subject: [PATCH] [VitisAI] Add processing for sessionOptions.AppendExecutionProvider("VitisAI", options) (#21839) ### Description [VitisAI] Add processing for sessionOptions.AppendExecutionProvider("VitisAI", options) ### Motivation and Context --------- Co-authored-by: Zhenze Wang --- onnxruntime/core/session/provider_registration.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/onnxruntime/core/session/provider_registration.cc b/onnxruntime/core/session/provider_registration.cc index db8b97f6d2c13..68aeea9f3c4d2 100644 --- a/onnxruntime/core/session/provider_registration.cc +++ b/onnxruntime/core/session/provider_registration.cc @@ -148,6 +148,8 @@ ORT_API_STATUS_IMPL(OrtApis::SessionOptionsAppendExecutionProvider, #else status = create_not_supported_status(); #endif + } else if (strcmp(provider_name, "VitisAI") == 0) { + status = OrtApis::SessionOptionsAppendExecutionProvider_VitisAI(options, provider_options_keys, provider_options_values, num_keys); } else { ORT_UNUSED_PARAMETER(options); status = OrtApis::CreateStatus(ORT_INVALID_ARGUMENT,