Commit b0ad96fd authored by Rostyslav Geyyer's avatar Rostyslav Geyyer
Browse files

Update the unneeded op to work but warn user

parent 4abeee36
...@@ -115,7 +115,10 @@ struct ConvertBF16RTN ...@@ -115,7 +115,10 @@ struct ConvertBF16RTN
template <> template <>
__host__ __device__ void operator()<half_t, half_t>(half_t& y, const half_t& x) const __host__ __device__ void operator()<half_t, half_t>(half_t& y, const half_t& x) const
{ {
y = type_convert<half_t>(x); y = x;
// fill user screen, but exit gracefully
printf("This datatype is not supported, please use ConvertBF16RTN for bf16 data only.\n");
} }
}; };
......
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