提交 fd4f4d0e 编写于 作者: P peizhilin

fix build issue test=develop

上级 25523bb8
......@@ -15,7 +15,7 @@
#include <gtest/gtest.h>
#include <algorithm>
#include <iostream>
#include <map>
#include <numeric>
#include <random>
#define PADDLE_CUDA_FP16
......
......@@ -271,11 +271,13 @@ TEST(float16, isinf) {
float16 b = float16(INFINITY);
// underflow to 0
float16 native_a(5e-40f);
// overflow to inf
float16 native_b(5e40f);
EXPECT_EQ(std::isinf(a), true);
EXPECT_EQ(std::isinf(b), true);
#ifndef _WIN32
// overflow to inf
float16 native_b(5e40f);
EXPECT_EQ(std::isinf(native_b), true);
#endif
EXPECT_EQ(native_a, float16(0));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册