Make sure we call __hneg with half to remove ambigios error (#1736)

This commit is contained in:
Jatin Chaudhary
2024-12-10 16:47:36 +00:00
committed by Pruthvi Madugundu
parent a82ae8e585
commit acf73bd1cf

View File

@@ -607,7 +607,7 @@ inline __device__ int8_t neg<int8_t>(int8_t x)
template <>
inline __device__ half_t neg<half_t>(half_t x)
{
return __hneg(x);
return __hneg(static_cast<__half>(x));
};
template <typename T>