From 16a04ef17da7517c84416c00fbd951774ce50558 Mon Sep 17 00:00:00 2001 From: Chi Lo Date: Thu, 25 Jan 2024 16:39:58 +0000 Subject: [PATCH] update --- onnxruntime/core/session/inference_session.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/onnxruntime/core/session/inference_session.cc b/onnxruntime/core/session/inference_session.cc index ad46a03e8fd75..39f47c09f2402 100644 --- a/onnxruntime/core/session/inference_session.cc +++ b/onnxruntime/core/session/inference_session.cc @@ -671,9 +671,7 @@ common::Status InferenceSession::RegisterExecutionProvider(const std::shared_ptr // Register the custom op domain only if it has not been registered before if (registry_kernels.empty()) { - for (auto candidate_custom_op_domain : candidate_custom_op_domains) { - custom_op_domains.push_back(candidate_custom_op_domain); - } + custom_op_domains = candidate_custom_op_domains; } else { for (auto candidate_custom_op_domain : candidate_custom_op_domains) { for (auto registry_kernel : registry_kernels) {