From 266387ecb45ca06a2bdf117a119cb65b9ab5dcd9 Mon Sep 17 00:00:00 2001 From: nammbash Date: Tue, 16 Jun 2020 12:02:14 -0700 Subject: [PATCH] create a single oneDNN string --- tensorflow/core/platform/cpu_feature_guard.cc | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/tensorflow/core/platform/cpu_feature_guard.cc b/tensorflow/core/platform/cpu_feature_guard.cc index a020d3fd70e..13116de49dc 100644 --- a/tensorflow/core/platform/cpu_feature_guard.cc +++ b/tensorflow/core/platform/cpu_feature_guard.cc @@ -138,16 +138,9 @@ void InfoAboutUnusedCPUFeatures() { CheckIfFeatureUnused(CPUFeature::FMA, "FMA", missing_instructions); #endif // __FMA__ #endif // else of if defined(_MSC_VER) && !defined(__clang__) - - string intel_library_official_name( - "Intel(R) oneAPI Deep Neural Network Library (oneDNN) "); -#ifndef INTEL_MKL - intel_library_official_name = "oneAPI Deep Neural Network Library (oneDNN) "; -#endif - - if (!missing_instructions.empty()) { + if (!missing_instructions.empty()) { LOG(INFO) << "This TensorFlow binary is optimized with " - << intel_library_official_name + << "oneAPI Deep Neural Network Library (oneDNN)" << "to use the following CPU instructions in performance-" << "critical operations: " << missing_instructions << std::endl << "To enable them in other operations, rebuild TensorFlow "