"vscode:/vscode.git/clone" did not exist on "29a11c2a94177a0f98899a2dd28a0bcdf32e7972"
Commit 0a622886 authored by Rosty Geyyer's avatar Rosty Geyyer
Browse files

Update UnaryConvertPrecision

parent 25b7bd72
......@@ -86,10 +86,13 @@ struct UnaryConvert
}
};
struct UnaryConvertPrecision : UnaryConvert
struct UnaryConvertPrecision
{
template <typename Y, typename X>
__host__ __device__ void operator()(Y& y, const X& x) const;
__host__ __device__ void operator()(Y& y, const X& x) const
{
y = type_convert<Y>(x);
}
template <>
__host__ __device__ void operator()<bhalf_t, float>(bhalf_t& y, const float& x) const
......
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