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

Minor fix

parent 872093b7
...@@ -1058,7 +1058,7 @@ inline __host__ __device__ constexpr bhalf_t type_convert<bhalf_t, int8_t>(int8_ ...@@ -1058,7 +1058,7 @@ inline __host__ __device__ constexpr bhalf_t type_convert<bhalf_t, int8_t>(int8_
// cast fp32 to fp8 // cast fp32 to fp8
template <bool negative_zero_nan, bool clip, bool stoch> template <bool negative_zero_nan, bool clip, bool stoch>
__host__ __device__ uint8_t cast_to_f8(float x, uint32_t rng) __host__ __device__ fp8_t cast_to_f8(float x, uint32_t rng)
{ {
// fp8 exponent/mantissa layout // fp8 exponent/mantissa layout
constexpr int we_f8 = 4; constexpr int we_f8 = 4;
...@@ -1157,7 +1157,7 @@ inline __host__ __device__ f8_t type_convert<f8_t, float>(float x) ...@@ -1157,7 +1157,7 @@ inline __host__ __device__ f8_t type_convert<f8_t, float>(float x)
// cast fp8 to fp32 // cast fp8 to fp32
template <bool negative_zero_nan> template <bool negative_zero_nan>
__host__ __device__ float cast_from_f8(uint8_t x) __host__ __device__ float cast_from_f8(f8_t x)
{ {
// fp8 exponent/mantissa layout // fp8 exponent/mantissa layout
constexpr int we_f8 = 4; constexpr int we_f8 = 4;
......
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