aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/util
diff options
context:
space:
mode:
authorGravatar AG Ramesh <ag.ramesh@intel.com>2018-09-29 23:29:28 -0700
committerGravatar AG Ramesh <ag.ramesh@intel.com>2018-09-29 23:32:51 -0700
commite0da6256cd116d17057374594f2fc191cf201f42 (patch)
treeb149c385016d67d02daa7ed117bee44fbda65de1 /tensorflow/core/util
parentd936d819752916d3122f02def571ecac9e995029 (diff)
Fixed format errors reported by clang-format
Diffstat (limited to 'tensorflow/core/util')
-rw-r--r--tensorflow/core/util/util.cc8
-rw-r--r--tensorflow/core/util/util.h2
2 files changed, 3 insertions, 7 deletions
diff --git a/tensorflow/core/util/util.cc b/tensorflow/core/util/util.cc
index 44d5becb9c..489999d1e8 100644
--- a/tensorflow/core/util/util.cc
+++ b/tensorflow/core/util/util.cc
@@ -122,11 +122,7 @@ string SliceDebugString(const TensorShape& shape, const int64 flat) {
#ifdef INTEL_MKL
bool DisableMKL() {
- enum MklStatus {
- MKL_DEFAULT = 0,
- MKL_ON = 1,
- MKL_OFF = 2
- };
+ enum MklStatus { MKL_DEFAULT = 0, MKL_ON = 1, MKL_OFF = 2 };
static MklStatus status = MKL_DEFAULT;
if (status == MKL_DEFAULT) {
char* tf_disable_mkl = getenv("TF_DISABLE_MKL");
@@ -139,5 +135,5 @@ bool DisableMKL() {
}
return status == MKL_OFF ? true : false;
}
-#endif
+#endif // INTEL_MKL
} // namespace tensorflow
diff --git a/tensorflow/core/util/util.h b/tensorflow/core/util/util.h
index ba90ad52c2..4aa47aa48a 100644
--- a/tensorflow/core/util/util.h
+++ b/tensorflow/core/util/util.h
@@ -59,7 +59,7 @@ string SliceDebugString(const TensorShape& shape, const int64 flat);
// disable MKL in runtime
#ifdef INTEL_MKL
bool DisableMKL();
-#endif
+#endif // INTEL_MKL
} // namespace tensorflow