File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -74,17 +74,12 @@ struct PADDLE_ALIGN(2) float16 {
74
74
75
75
// The following defaulted special class member functions
76
76
// are added to make float16 pass the std::is_trivial test
77
- HOSTDEVICE inline float16 () = default ;
78
-
79
- HOSTDEVICE inline float16 (const float16&) = default ;
80
-
81
- HOSTDEVICE inline float16& operator =(const float16&) = default ;
82
-
83
- HOSTDEVICE inline float16 (float16&&) = default ;
84
-
85
- HOSTDEVICE inline float16& operator =(float16&&) = default ;
86
-
87
- HOSTDEVICE inline ~float16 () = default ;
77
+ float16 () = default ;
78
+ float16 (const float16& o) = default ;
79
+ float16& operator =(const float16& o) = default ;
80
+ float16 (float16&& o) = default ;
81
+ float16& operator =(float16&& o) = default ;
82
+ ~float16 () = default ;
88
83
89
84
// Constructors
90
85
#ifdef PADDLE_CUDA_FP16
You can’t perform that action at this time.
0 commit comments