提交 d50016b2 编写于 作者: Y Yu Yang 提交者: kexinzhao

Remove build warnings in float16.h (#8481)

上级 c490f1b3
...@@ -74,17 +74,12 @@ struct PADDLE_ALIGN(2) float16 { ...@@ -74,17 +74,12 @@ struct PADDLE_ALIGN(2) float16 {
// The following defaulted special class member functions // The following defaulted special class member functions
// are added to make float16 pass the std::is_trivial test // are added to make float16 pass the std::is_trivial test
HOSTDEVICE inline float16() = default; float16() = default;
float16(const float16& o) = default;
HOSTDEVICE inline float16(const float16&) = default; float16& operator=(const float16& o) = default;
float16(float16&& o) = default;
HOSTDEVICE inline float16& operator=(const float16&) = default; float16& operator=(float16&& o) = default;
~float16() = default;
HOSTDEVICE inline float16(float16&&) = default;
HOSTDEVICE inline float16& operator=(float16&&) = default;
HOSTDEVICE inline ~float16() = default;
// Constructors // Constructors
#ifdef PADDLE_CUDA_FP16 #ifdef PADDLE_CUDA_FP16
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册