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;