Enable BF16 on metal. (#2380)

This commit is contained in:
Laurent Mazare
2024-08-01 10:05:07 +01:00
committed by GitHub
parent ce90287f45
commit 957d604a78
2 changed files with 3 additions and 4 deletions

View File

@ -1409,6 +1409,7 @@ impl BackendStorage for MetalStorage {
let name = match self.dtype {
DType::F32 => "sgemm",
DType::F16 => "hgemm",
DType::BF16 => "bgemm",
dtype => {
return Err(MetalError::Message(format!("matmul doesn't support {dtype:?}")).into())
}