ggml-metal : supports_op returns false for ternary types

Maybe not the cleanest way, but hopefully temporary.
This commit is contained in:
Francis Couture-Harpin 2025-01-11 19:50:08 -05:00
parent 946796fcec
commit b6fc9f03ab

View file

@ -1081,6 +1081,18 @@ static bool ggml_metal_supports_op(const struct ggml_backend_metal_device_contex
}
}
}
// TODO: remove once proper support is added.
for (size_t i = 0, n = 3; i < n; ++i) {
if (op->src[i] != NULL) {
switch (op->src[i]->type) {
case GGML_TYPE_TQ1_0:
case GGML_TYPE_TQ2_0:
return false;
default:
break;
}
}
}
switch (op->op) {
case GGML_OP_UNARY: