From 2edf29552ddd4fe5739c0f31a331f9fd45e16254 Mon Sep 17 00:00:00 2001 From: jingyanwangms <47403504+jingyanwangms@users.noreply.github.com> Date: Fri, 9 Apr 2021 13:40:47 -0700 Subject: [PATCH] Add Optype to type mismatch message (#7305) * Include optype in error message Co-authored-by: Jingyan Wang --- onnxruntime/core/graph/graph.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onnxruntime/core/graph/graph.cc b/onnxruntime/core/graph/graph.cc index 5f3de37128..d639e0c070 100644 --- a/onnxruntime/core/graph/graph.cc +++ b/onnxruntime/core/graph/graph.cc @@ -2062,7 +2062,7 @@ Status Graph::InferAndVerifyTypeMatch(Node& node, const OpSchema& op, const Reso // The type-parameter T is bound to different values for different inputs. Status status(ONNXRUNTIME, FAIL, "Type Error: Type parameter (" + op_formal_parameter.GetTypeStr() + - ") bound to different types (" + *(param_to_type_iter->second) + + ") of Optype (" + op.Name() + ") bound to different types (" + *(param_to_type_iter->second) + " and " + *(input_def->Type()) + " in node (" + node_name + ")."); return status;