Skip to content

Commit

Permalink
Remove build warnings in float16.h (#8481)
Browse files Browse the repository at this point in the history
  • Loading branch information
reyoung authored and kexinzhao committed Feb 22, 2018
1 parent c490f1b commit d50016b
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions paddle/fluid/platform/float16.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,12 @@ struct PADDLE_ALIGN(2) float16 {

// The following defaulted special class member functions
// are added to make float16 pass the std::is_trivial test
HOSTDEVICE inline float16() = default;

HOSTDEVICE inline float16(const float16&) = default;

HOSTDEVICE inline float16& operator=(const float16&) = default;

HOSTDEVICE inline float16(float16&&) = default;

HOSTDEVICE inline float16& operator=(float16&&) = default;

HOSTDEVICE inline ~float16() = default;
float16() = default;
float16(const float16& o) = default;
float16& operator=(const float16& o) = default;
float16(float16&& o) = default;
float16& operator=(float16&& o) = default;
~float16() = default;

// Constructors
#ifdef PADDLE_CUDA_FP16
Expand Down

0 comments on commit d50016b

Please sign in to comment.