diff options
author | 2016-03-11 15:02:25 -0800 | |
---|---|---|
committer | 2016-03-11 20:45:16 -0800 | |
commit | 9917b53a41345cf30954a5a4b17985412f1acfde (patch) | |
tree | 13f06d81d3d82d1faa4da3627e86d1a07441deed /tensorflow/core/framework/tensor_testutil.h | |
parent | 65c9124086240616747e26e0aa5ef3412a3be55d (diff) |
Clean up some unused code to fix warnings in the Mac build.
Change: 117011572
Diffstat (limited to 'tensorflow/core/framework/tensor_testutil.h')
-rw-r--r-- | tensorflow/core/framework/tensor_testutil.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tensorflow/core/framework/tensor_testutil.h b/tensorflow/core/framework/tensor_testutil.h index 763c7eeb43..71e1767924 100644 --- a/tensorflow/core/framework/tensor_testutil.h +++ b/tensorflow/core/framework/tensor_testutil.h @@ -107,22 +107,22 @@ struct is_floating_point_type { }; template <typename T> -static void ExpectEqual(const T& a, const T& b) { +inline void ExpectEqual(const T& a, const T& b) { EXPECT_EQ(a, b); } template <> -void ExpectEqual<float>(const float& a, const float& b) { +inline void ExpectEqual<float>(const float& a, const float& b) { EXPECT_FLOAT_EQ(a, b); } template <> -void ExpectEqual<double>(const double& a, const double& b) { +inline void ExpectEqual<double>(const double& a, const double& b) { EXPECT_DOUBLE_EQ(a, b); } template <> -void ExpectEqual<complex64>(const complex64& a, const complex64& b) { +inline void ExpectEqual<complex64>(const complex64& a, const complex64& b) { EXPECT_FLOAT_EQ(a.real(), b.real()) << a << " vs. " << b; EXPECT_FLOAT_EQ(a.imag(), b.imag()) << a << " vs. " << b; } |