From becce0043e52bf053c5468e9b4cd164cc2236e0f Mon Sep 17 00:00:00 2001 From: Ivan Stepanov Date: Thu, 4 May 2023 13:50:43 +0300 Subject: [PATCH] Update convert.py --- convert.py | 1 - 1 file changed, 1 deletion(-) diff --git a/convert.py b/convert.py index c1f7a2281..c817a343e 100644 --- a/convert.py +++ b/convert.py @@ -291,7 +291,6 @@ class UnquantizedTensor(Tensor): def astype(self, data_type: DataType) -> Tensor: dtype = DATA_TYPE_TO_NUMPY[data_type] - if self.data_type == DT_BF16: self.ndarray = bf16_to_fp32(self.ndarray) return UnquantizedTensor(self.ndarray.astype(dtype))