diff --git a/Eigen/src/Core/arch/Default/BFloat16.h b/Eigen/src/Core/arch/Default/BFloat16.h index d0666effa..eb8d40aee 100644 --- a/Eigen/src/Core/arch/Default/BFloat16.h +++ b/Eigen/src/Core/arch/Default/BFloat16.h @@ -46,12 +46,13 @@ namespace Eigen { struct bfloat16; +namespace numext { template <> -EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::bfloat16 numext::bit_cast(const uint16_t& src); +EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC Eigen::bfloat16 bit_cast(const uint16_t& src); template <> -EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC uint16_t numext::bit_cast(const Eigen::bfloat16& src); - +EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC uint16_t bit_cast(const Eigen::bfloat16& src); +} // namespace numext namespace bfloat16_impl { #if defined(EIGEN_USE_HIP_BF16)