diff --git a/ml_dtypes/include/float8.h b/ml_dtypes/include/float8.h index 29e18d50..8d6d41df 100644 --- a/ml_dtypes/include/float8.h +++ b/ml_dtypes/include/float8.h @@ -882,18 +882,10 @@ struct IdentityConversion { static EIGEN_DEVICE_FUNC inline Scalar run(Scalar from) { return from; } }; -template -struct ConvertImpl : public IdentityConversion {}; -template -struct ConvertImpl : public IdentityConversion {}; -template -struct ConvertImpl : public IdentityConversion {}; -template -struct ConvertImpl : public IdentityConversion {}; +template +struct ConvertImpl + : public IdentityConversion {}; template struct TraitsBase { @@ -1221,15 +1213,6 @@ struct ConvertImpl { } }; -template <> -struct ConvertImpl { - static EIGEN_DEVICE_FUNC inline Eigen::half run(float8_e5m2 from) { - return Eigen::numext::bit_cast( - static_cast(static_cast(from.rep()) << 8)); - } -}; - // Direct casts of e5m2 to Eigen::half simply shifts bits over. template struct ConvertImpl {