make gcc-5 on Ubuntu 16.04 happy (#10385)

gcc-5 complains of ambiguity and refuses to go when doing something
like 'bazel build -c opt tensorflow/...'
This commit is contained in:
freedom" Koan-Sin Tan 2017-06-03 00:13:41 +08:00 committed by Benoit Steiner
parent 359d6f9716
commit 07d39f28e5
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ TEST(MfccTest, AvoidsNansWithZeroInput) {
int expected_size = 13;
ASSERT_EQ(expected_size, output.size());
for (const double value : output) {
EXPECT_FALSE(isnan(value));
EXPECT_FALSE(std::isnan(value));
}
}

View File

@ -215,7 +215,7 @@ TEST(CtcBeamSearch, AllBeamElementsHaveFiniteScores) {
// Make sure all scores are finite.
for (int path = 0; path < top_paths; ++path) {
LOG(INFO) << "path " << path;
EXPECT_FALSE(isinf(score[0][path]));
EXPECT_FALSE(std::isinf(score[0][path]));
}
}