ggml : update unary asserts and "supports_op"

ggml-ci
This commit is contained in:
Georgi Gerganov 2024-06-10 16:17:51 +03:00
parent ebf95c2225
commit 8412561c4b
No known key found for this signature in database
GPG key ID: BF970631944C16B7
7 changed files with 70 additions and 57 deletions

View file

@ -1340,7 +1340,7 @@ static bool ggml_vk_supports_op(const struct ggml_tensor * op) {
case GGML_UNARY_OP_RELU:
case GGML_UNARY_OP_GELU:
case GGML_UNARY_OP_SILU:
return true;
return ggml_is_contiguous(op->src[0]);
default:
;
}