message: change based on Penpornk's code review suggestion
diff: @@ -1821,16 +1821,15 @@ class MklPrimitiveFactory {
  /// For those legacy device(w/o AVX512 and AVX2),
  /// MKL-DNN GEMM will be used.
  static inline bool IsLegacyPlatform() {
  - static bool is_legacy_platform = [] {
  - return (!port::TestCPUFeature(port::CPUFeature::AVX512F) &&
  + static const bool is_legacy_platform =
  + (!port::TestCPUFeature(port::CPUFeature::AVX512F) &&
  !port::TestCPUFeature(port::CPUFeature::AVX2));
  - }();
  return is_legacy_platform;
  }
  /// Function to check whether primitive memory optimization is enabled
  static inline bool IsPrimitiveMemOptEnabled() {
  - static bool is_primitive_mem_opt_enabled = [] {
  + static const bool is_primitive_mem_opt_enabled = [] {
  bool value = true;
  TF_CHECK_OK(
  ReadBoolFromEnvVar("TF_MKL_OPTIMIZE_PRIMITIVE_MEMUSE", true, &value));
  