aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Shanqing Cai <cais@google.com>2016-08-25 10:03:53 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-08-25 11:16:31 -0700
commit1fa09b5560144e8dd16756d7877e01647fa68325 (patch)
tree5b22b2f82c600780e3489d3305cd8eb944454d8d
parent4747f6587777d915d9df199592e5d080d7820778 (diff)
Fix abs()-related build failure on mac os
Change: 131308407
-rw-r--r--tensorflow/core/framework/tensor_testutil.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/core/framework/tensor_testutil.cc b/tensorflow/core/framework/tensor_testutil.cc
index 1bae7b08d5..cc117ad19e 100644
--- a/tensorflow/core/framework/tensor_testutil.cc
+++ b/tensorflow/core/framework/tensor_testutil.cc
@@ -22,7 +22,7 @@ namespace test {
template <typename T>
bool IsClose(const T& x, const T& y, double atol, double rtol) {
// Need x == y so that infinities are close to themselves
- return x == y || fabs(x - y) < atol + rtol * fabs(x);
+ return x == y || std::abs(x - y) < atol + rtol * std::abs(x);
}
template <typename T>