You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[VitisAI] Enable ort::logger usage in compile_onnx_model_vitisai_ep_v4 (#26487)
### Description
Enable the use of ort::logger safely across DLL boundaries for the
VitisAI execution provider.
### Motivation and Context
Resolves issue PUID 1194096. This enables
compile_onnx_model_vitisai_ep_v4 to use ort::logger properly.
if (s_library_vitisaiep.compile_onnx_model_vitisai_ep_v3) {
190
+
auto vaip_execution_provider_deletor = s_library_vitisaiep.vaip_execution_provider_deletor;
191
+
if (s_library_vitisaiep.compile_onnx_model_vitisai_ep_v4) {
192
+
Status status = Status::OK();
193
+
auto status_ptr = reinterpret_cast<void*>(&status);
194
+
auto ret = vaip_core::DllSafe(s_library_vitisaiep.compile_onnx_model_vitisai_ep_v4(model_path.u8string(), graph_viewer.GetGraph(), options, status_ptr, change_status_with_error, logger), vaip_execution_provider_deletor);
auto status_ptr = reinterpret_cast<void*>(&status);
180
-
auto ret = vaip_core::DllSafe(s_library_vitisaiep.compile_onnx_model_vitisai_ep_v3(model_path, graph_viewer.GetGraph(), options, status_ptr, change_status_with_error));
202
+
auto ret = vaip_core::DllSafe(s_library_vitisaiep.compile_onnx_model_vitisai_ep_v3(model_path.u8string(), graph_viewer.GetGraph(), options, status_ptr, change_status_with_error), vaip_execution_provider_deletor);
auto status_ptr = reinterpret_cast<void*>(&status);
188
-
auto ret = vaip_core::DllSafe(s_library_vitisaiep.compile_onnx_model_vitisai_ep_with_error_handling(model_path.u8string(), graph_viewer.GetGraph(), options, status_ptr, change_status_with_error));
210
+
auto ret = vaip_core::DllSafe(s_library_vitisaiep.compile_onnx_model_vitisai_ep_with_error_handling(model_path.u8string(), graph_viewer.GetGraph(), options, status_ptr, change_status_with_error), vaip_execution_provider_deletor);
0 commit comments