Fix size-in-bytes for u8. (#351)

This commit is contained in:
Laurent Mazare
2023-08-08 22:15:18 +02:00
committed by GitHub
parent 608b2358c6
commit b9864e1357

View File

@ -43,7 +43,7 @@ impl DType {
pub fn size_in_bytes(&self) -> usize {
match self {
Self::U8 => 4,
Self::U8 => 1,
Self::U32 => 4,
Self::BF16 => 2,
Self::F16 => 2,