metal : fix `ggml_metal_supports_op` for BF16 (#8021)
Currently the Metal backend does not support BF16. `ggml_metal_supports_op` was returning true in these cases, leading to a crash with models converted with `--leave-output-tensor`. This commit checks if the first few sources types are BF16 and returns false if that's the case.
M
Michael de Gans committed
2075a66a96cc1b04eabec7cf4b3051193d6f719e
Parent: ba58993
Committed by GitHub <noreply@github.com>
on 6/20/2024, 5:32:01 AM