Remove checking on double.

- All conversions among floating point types should be allowed.

Change-Id: I6223bece51f5b2a535ab3369c5c4380f18acc74d
这个提交包含在:
Michael LIAO 编写, Michael Hong Bin Liao 于 2021-01-11 11:33:33 -05:00 提交
1 父节点 05cc647684
当前提交 094ff5431e
1 个文件已更改
+1 -3
+1 -3
查看文件
@@ -220,9 +220,7 @@ THE SOFTWARE.
#if !defined(__HIP_NO_HALF_CONVERSIONS__)
template<
typename T,
Enable_if_t<
std::is_floating_point<T>{} &&
!std::is_same<T, double>{}>* = nullptr>
Enable_if_t<std::is_floating_point<T>{}>* = nullptr>
__host__ __device__
operator T() const { return data; }
#endif