Unverified Commit 19130401 authored by Matthias Fey's avatar Matthias Fey Committed by GitHub
Browse files

fix half conversion (#280)

parent ae1fce51
......@@ -9,11 +9,11 @@
__device__ __inline__ at::Half __shfl_up_sync(const unsigned mask,
const at::Half var,
const unsigned int delta) {
return __shfl_up_sync(mask, (__half)var, delta);
return __shfl_up_sync(mask, var.operator __half(), delta);
}
__device__ __inline__ at::Half __shfl_down_sync(const unsigned mask,
const at::Half var,
const unsigned int delta) {
return __shfl_down_sync(mask, (__half)var, delta);
return __shfl_down_sync(mask, var.operator __half(), delta);
}
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