Skip to content

Commit

Permalink
Print different oneDNN warnings for x86 and aarch64 backends.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 447508799
  • Loading branch information
penpornk committed May 9, 2022
1 parent c4a94c9 commit 1078ba3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tensorflow/core/util/util.cc
Expand Up @@ -165,11 +165,17 @@ bool IsMKLEnabled() {
<< oneDNN_enabled;
}
if (oneDNN_enabled) {
#ifndef DNNL_AARCH64_USE_ACL
LOG(INFO) << "oneDNN custom operations are on. "
<< "You may see slightly different numerical results due to "
<< "floating-point round-off errors from different computation "
<< "orders. To turn them off, set the environment variable "
<< "`TF_ENABLE_ONEDNN_OPTS=0`.";
#else
LOG(INFO) << "Experimental oneDNN custom operations are on. "
<< "If you experience issues, please turn them off by setting "
<< "the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.";
#endif // !DNNL_AARCH64_USE_ACL
}
});
return oneDNN_enabled;
Expand Down

0 comments on commit 1078ba3

Please sign in to comment.