Make it clear in verbose log on why a kernel impl does not fit for a node (#10872)

This commit is contained in:
cloudhan 2022-03-17 20:05:11 +08:00 committed by GitHub
parent 6c0eff1ae4
commit e03b799b95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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());
}