mirror of
https://github.com/huggingface/candle.git
synced 2025-06-22 20:38:06 +00:00
Support gather on bf16 for metal. (#2035)
This commit is contained in:
@ -207,6 +207,9 @@ INDEX_OP(is_u8_bf16, uint8_t, bfloat)
|
||||
|
||||
GATHER_OP(gather_u32_f32, uint, float)
|
||||
GATHER_OP(gather_u32_f16, uint, half)
|
||||
#if defined(__HAVE_BFLOAT__)
|
||||
GATHER_OP(gather_u32_bf16, uint, bfloat)
|
||||
#endif
|
||||
|
||||
SCATTER_ADD_OP(sa_u32_f32, uint32_t, float)
|
||||
SCATTER_ADD_OP(sa_u8_f32, uint8_t, float)
|
||||
|
Reference in New Issue
Block a user