diff options
author | zachcp <zachcp@users.noreply.github.com> | 2024-11-30 17:18:07 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-30 23:18:07 +0100 |
commit | dba7a9c93e4c84c8197e8a5b56f40adcf2650bde (patch) | |
tree | c498e4854c3333c7f5ad083d0874601504835c70 /candle-core/src/metal_backend/mod.rs | |
parent | b52c2c60508325431df5e05eca9801060fdbcc1c (diff) | |
download | candle-dba7a9c93e4c84c8197e8a5b56f40adcf2650bde.tar.gz candle-dba7a9c93e4c84c8197e8a5b56f40adcf2650bde.tar.bz2 candle-dba7a9c93e4c84c8197e8a5b56f40adcf2650bde.zip |
add u32 - U32 gather (#2653)
Diffstat (limited to 'candle-core/src/metal_backend/mod.rs')
-rw-r--r-- | candle-core/src/metal_backend/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/candle-core/src/metal_backend/mod.rs b/candle-core/src/metal_backend/mod.rs index 47f54c8d..e8159f46 100644 --- a/candle-core/src/metal_backend/mod.rs +++ b/candle-core/src/metal_backend/mod.rs @@ -1244,6 +1244,7 @@ impl BackendStorage for MetalStorage { (DType::U32, DType::F32) => "gather_u32_f32", (DType::U32, DType::F16) => "gather_u32_f16", (DType::U32, DType::BF16) => "gather_u32_bf16", + (DType::U32, DType::U32) => "gather_u32_u32", (left, right) => crate::bail!("Metal gather {left:?} {right:?} not implemented"), }; let command_buffer = self.device.command_buffer()?; |