diff options
author | 2016-08-25 12:00:42 -0800 | |
---|---|---|
committer | 2016-08-25 20:12:11 -0700 | |
commit | 8b4c16de8882c7213eed0a529109c03747fc7449 (patch) | |
tree | 6cb926d987551d4bcdc99bb05c296e93a5afb378 /tensorflow/core/framework/tensor_testutil.cc | |
parent | 0e5d49d362a5ef72179e385d1f71ec29ab0392f6 (diff) |
Move from std::fabs to std::abs, which is more standards compliant for complex types
Change: 131321424
Diffstat (limited to 'tensorflow/core/framework/tensor_testutil.cc')
-rw-r--r-- | tensorflow/core/framework/tensor_testutil.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/core/framework/tensor_testutil.cc b/tensorflow/core/framework/tensor_testutil.cc index cc117ad19e..a8d1412300 100644 --- a/tensorflow/core/framework/tensor_testutil.cc +++ b/tensorflow/core/framework/tensor_testutil.cc @@ -34,7 +34,7 @@ void ExpectClose(const Tensor& x, const Tensor& y, double atol, double rtol) { LOG(ERROR) << "x = " << x.DebugString(); LOG(ERROR) << "y = " << y.DebugString(); LOG(ERROR) << "atol = " << atol << " rtol = " << rtol - << " tol = " << atol + rtol * std::fabs(Tx(i)); + << " tol = " << atol + rtol * std::abs(Tx(i)); EXPECT_TRUE(false) << i << "-th element is not close " << Tx(i) << " vs. " << Ty(i); } |