"library/src/utility/host_tensor.cpp" did not exist on "aebd211c363324ec8be401f17fe815e21da59081"
Commit 60c7f662 authored by Jatin Chaudhary's avatar Jatin Chaudhary Committed by Jithun Nair
Browse files

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

parent 50ee4267
...@@ -611,7 +611,7 @@ inline __device__ int8_t neg<int8_t>(int8_t x) ...@@ -611,7 +611,7 @@ inline __device__ int8_t neg<int8_t>(int8_t x)
template <> template <>
inline __device__ half_t neg<half_t>(half_t x) inline __device__ half_t neg<half_t>(half_t x)
{ {
return __hneg(x); return __hneg(static_cast<__half>(x));
}; };
template <typename T> template <typename T>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment