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 Jithun Nair
parent 50ee4267e2
commit 60c7f66251

View File

@@ -611,7 +611,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>