From b789677e65fa6cced88f8670cd2f8014ee8c8810 Mon Sep 17 00:00:00 2001 From: pengwa Date: Mon, 29 Apr 2024 11:03:57 +0800 Subject: [PATCH] Fix Onnxruntime-TVM CI (#20498) ### Description ``` tvm_execution_provider.cc denormal.cc D:\a\onnxruntime\onnxruntime\onnxruntime\core\providers\tvm\tvm_execution_provider.cc(122,5): error C2660: 'onnxruntime::GraphViewerToProto': function does not take 4 arguments [D:\a\onnxruntime\onnxruntime\build\Release\onnxruntime_providers_tvm.vcxproj] D:\a\onnxruntime\onnxruntime\onnxruntime\core\graph\graph_proto_serializer.h(10,6): see declaration of 'onnxruntime::GraphViewerToProto' D:\a\onnxruntime\onnxruntime\onnxruntime\core\providers\tvm\tvm_execution_provider.cc(122,5): while trying to match the argument list '(const onnxruntime::GraphViewer, onnx::GraphProto, bool, bool)' cpuid_uarch.cc get_execution_providers.cc abi_session_options.cc bias_dropout_fusion.cc if.cc ``` ### Motivation and Context --- onnxruntime/core/graph/graph_proto_serializer.cc | 2 +- onnxruntime/core/graph/graph_proto_serializer.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/onnxruntime/core/graph/graph_proto_serializer.cc b/onnxruntime/core/graph/graph_proto_serializer.cc index c8da2461a3..aefad28eb3 100644 --- a/onnxruntime/core/graph/graph_proto_serializer.cc +++ b/onnxruntime/core/graph/graph_proto_serializer.cc @@ -9,7 +9,7 @@ void GraphViewerToProto(const GraphViewer& graph_view, ONNX_NAMESPACE::GraphProto& graph_proto, bool include_initializer, bool include_outer_scope_args, - ExecutionOrder order = ExecutionOrder::DEFAULT) { + ExecutionOrder order) { graph_proto.set_name(graph_view.Name()); graph_proto.set_doc_string(graph_view.Description()); diff --git a/onnxruntime/core/graph/graph_proto_serializer.h b/onnxruntime/core/graph/graph_proto_serializer.h index 43027ef704..ce21e1b609 100644 --- a/onnxruntime/core/graph/graph_proto_serializer.h +++ b/onnxruntime/core/graph/graph_proto_serializer.h @@ -11,5 +11,5 @@ void GraphViewerToProto(const GraphViewer& graph_view, ONNX_NAMESPACE::GraphProto& graph_proto, bool include_initializer, bool include_outer_scope_args, - ExecutionOrder order); + ExecutionOrder order = ExecutionOrder::DEFAULT); } // namespace onnxruntime