From 10b7ed6430feba144b77d4365bc2129af6d5d5c5 Mon Sep 17 00:00:00 2001 From: Chandru Ramakrishnan <41447659+chandru-r@users.noreply.github.com> Date: Mon, 21 Jun 2021 14:45:53 -0400 Subject: [PATCH] Added op_name to message when we are missing a kernel. (#8110) * Added op_name to message when we are missing a kernel. * Added domain and version * Added missing , --- onnxruntime/core/eager/ort_kernel_invoker.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/onnxruntime/core/eager/ort_kernel_invoker.cc b/onnxruntime/core/eager/ort_kernel_invoker.cc index 46875392c8..fdfa9e70f8 100644 --- a/onnxruntime/core/eager/ort_kernel_invoker.cc +++ b/onnxruntime/core/eager/ort_kernel_invoker.cc @@ -16,7 +16,7 @@ common::Status ORTInvoker::Invoke(const std::string& op_name, std::vector& outputs, const NodeAttributes* attributes, const std::string& domain, - const int /*version*/) { + const int version) { //create a graph Model model("test", false, @@ -61,7 +61,7 @@ common::Status ORTInvoker::Invoke(const std::string& op_name, OptimizerExecutionFrame::Info info({&node}, initializer_map, graph.ModelPath(), *execution_provider_); auto kernel = info.CreateKernel(&node); if (!kernel) { - ORT_THROW("Could not find kernel"); + ORT_THROW("Could not find kernel name:", op_name, ", domain:", domain, ", version:", version); } std::vector fetch_mlvalue_idxs;