fixes error message

This commit is contained in:
Gonzalo
2023-12-28 15:03:05 -03:00
parent b3e838f3e2
commit 8e93e76a91

View File

@ -1143,7 +1143,7 @@ impl BackendStorage for MetalStorage {
let name = match (ids.dtype, self.dtype) { let name = match (ids.dtype, self.dtype) {
(DType::U32, DType::F32) => "ia_u32_f32", (DType::U32, DType::F32) => "ia_u32_f32",
_ => Err(MetalError::UnexpectedDType { _ => Err(MetalError::UnexpectedDType {
msg: "index-add ids should be u8/u32/i64", msg: "index-add ids should be u32",
expected: DType::U32, expected: DType::U32,
got: ids.dtype(), got: ids.dtype(),
})?, })?,