From 7c18e417919e81175c43c0112029bcd9af28f3cd Mon Sep 17 00:00:00 2001 From: Rostyslav Geyyer <46627076+geyyer@users.noreply.github.com> Date: Tue, 18 Jul 2023 09:44:51 -0500 Subject: [PATCH] Remove type_convert bf16 to int32 and back (#802) [ROCm/composable_kernel commit: f82bd5938902142ee9daf4bc6aac753a6dccfaeb] --- include/ck/utility/type_convert.hpp | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/include/ck/utility/type_convert.hpp b/include/ck/utility/type_convert.hpp index ed83964936..65d8940377 100644 --- a/include/ck/utility/type_convert.hpp +++ b/include/ck/utility/type_convert.hpp @@ -62,24 +62,6 @@ inline __host__ __device__ constexpr bhalf_t type_convert(half_ return type_convert(x_fp32); } -// convert bfp16 to int32 via fp32 -template <> -inline __host__ __device__ constexpr int32_t type_convert(bhalf_t x) -{ - float x_fp32 = type_convert(x); - - return static_cast(x_fp32); -} - -// convert int32 to bfp16 via fp32 -template <> -inline __host__ __device__ constexpr bhalf_t type_convert(int32_t x) -{ - float x_fp32 = static_cast(x); - - return type_convert(x_fp32); -} - // convert bfp16 to int8 via fp32 template <> inline __host__ __device__ constexpr int8_t type_convert(bhalf_t x)