Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

r2.10 cherry-pick: Skip appending kernel registration to log message for oneDNN ops. #57141

Merged
merged 1 commit into from
Aug 15, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 7 additions & 4 deletions tensorflow/core/framework/op_kernel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1444,10 +1444,13 @@ Status FindKernelDef(
}

// Do not print kernel registrations for other devices when using _JIT
// devices for compilation.
if (!absl::StrContains(device_str, "JIT")) {
errors::AppendToMessage(
&s, ". Registered:", KernelsRegisteredForOp(node_op));
// devices for compilation or for MKL ops.
// TODO (intel-tf) : Remove the check for MKL ops when support for
// block format is removed.
if (!absl::StrContains(device_str, "JIT") &&
!absl::StartsWith(node_name, "_Mkl")) {
errors::AppendToMessage(&s, ". Registered:",
KernelsRegisteredForOp(node_op));
}

return s;
Expand Down