From 86eb1f4a922c3a5e73ff3eb85563774024e53c91 Mon Sep 17 00:00:00 2001 From: Preetha Veeramalai Date: Mon, 26 Aug 2024 10:53:08 +0530 Subject: [PATCH] Remove redundant file write in EPCtx model dump --- onnxruntime/core/providers/openvino/onnx_ctx_model_helper.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/onnxruntime/core/providers/openvino/onnx_ctx_model_helper.cc b/onnxruntime/core/providers/openvino/onnx_ctx_model_helper.cc index 49c009ac60178..ee9486a62ea37 100644 --- a/onnxruntime/core/providers/openvino/onnx_ctx_model_helper.cc +++ b/onnxruntime/core/providers/openvino/onnx_ctx_model_helper.cc @@ -88,7 +88,6 @@ Status EPCtxHandler::ExportEPCtxModel(const GraphViewer& graph_viewer, if (!model_proto->SerializeToOstream(epctx_onnx_model)) { return ORT_MAKE_STATUS(ONNXRUNTIME, FAIL, "Failed to serialize model to file"); } - model_proto->SerializeToOstream(epctx_onnx_model); } LOGS_DEFAULT(VERBOSE) << "[OpenVINO EP] Export blob as EPContext Node";