Add Optype to type mismatch message (#7305)

* Include optype in error message

Co-authored-by: Jingyan Wang <jingywa@OrtTrainingDev3.af05slrtruoetgaxwwjv5nsq5e.px.internal.cloudapp.net>
This commit is contained in:
jingyanwangms 2021-04-09 13:40:47 -07:00 committed by GitHub
parent b221a4fd86
commit 2edf29552d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;