Skip to content

Commit

Permalink
ggml-metal : supports_op returns false for ternary types
Browse files Browse the repository at this point in the history
Maybe not the cleanest way, but hopefully temporary.
  • Loading branch information
compilade committed Jan 12, 2025
1 parent 946796f commit b6fc9f0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ggml/src/ggml-metal/ggml-metal.m
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b6fc9f0

Please sign in to comment.