From 5e85fce91e04a48060f446b47d9f1c9f7adf918b Mon Sep 17 00:00:00 2001 From: Scott McKay Date: Tue, 24 Dec 2024 07:52:29 +1000 Subject: [PATCH] Add missed changed. --- include/onnxruntime/core/session/onnxruntime_cxx_inline.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/onnxruntime/core/session/onnxruntime_cxx_inline.h b/include/onnxruntime/core/session/onnxruntime_cxx_inline.h index b1905dab7360d..6a3c8b869dd2c 100644 --- a/include/onnxruntime/core/session/onnxruntime_cxx_inline.h +++ b/include/onnxruntime/core/session/onnxruntime_cxx_inline.h @@ -1159,7 +1159,7 @@ inline void SessionImpl::SetEpDynamicOptions(const char* const* keys, const c template inline void SessionImpl::FinalizeModelBuilderSession(const ModelBuilderAPI::Model& model, const SessionOptions& options, OrtPrepackedWeightsContainer* prepacked_weights_container) { - ThrowOnError(GetModelBuilderApi().ApplyModelToSession(this->p_, model)); + ThrowOnError(GetModelBuilderApi().ApplyModelToModelBuilderSession(this->p_, model)); ThrowOnError(GetModelBuilderApi().FinalizeModelBuilderSession(this->p_, options, prepacked_weights_container)); }