From e03b799b957a1828b2c470213ca3feac7edee78a Mon Sep 17 00:00:00 2001 From: cloudhan Date: Thu, 17 Mar 2022 20:05:11 +0800 Subject: [PATCH] Make it clear in verbose log on why a kernel impl does not fit for a node (#10872) --- onnxruntime/core/framework/kernel_registry.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/onnxruntime/core/framework/kernel_registry.cc b/onnxruntime/core/framework/kernel_registry.cc index 01820c3474..e77eadc010 100644 --- a/onnxruntime/core/framework/kernel_registry.cc +++ b/onnxruntime/core/framework/kernel_registry.cc @@ -309,6 +309,7 @@ Status KernelRegistry::TryFindKernel(const Node& node, << " kernel is not supported in " << expected_provider << "." << " Encountered following errors: (" << ToString(verify_kernel_def_error_strs) << ")"; + VLOGS_DEFAULT(2) << "TryFindKernel failed, Reason: " << oss.str(); return Status(common::ONNXRUNTIME, common::FAIL, oss.str()); }