Skip to content

Commit

Permalink
Merge pull request #57141 from penpornk/cherrypicks_GOG6L
Browse files Browse the repository at this point in the history
r2.10 cherry-pick: Skip appending kernel registration to log message for oneDNN ops.
  • Loading branch information
vinila21 committed Aug 15, 2022
2 parents e1593b8 + a6d477a commit 2590187
Showing 1 changed file with 7 additions and 4 deletions.
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

0 comments on commit 2590187

Please sign in to comment.