diff options
author | Georgi Gerganov <ggerganov@gmail.com> | 2024-06-12 16:00:22 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-12 16:00:22 +0300 |
commit | a9cae48003dfc4fe95b8f5c81682fc6e63425235 (patch) | |
tree | 36765340a3c000159361c32f379016b05e3db5d0 /ggml-cuda.cu | |
parent | bfaa676b0841617d4ef3596e63aca6be1a8eb1b5 (diff) |
tests : add non-cont unary tests (#7857)
* tests : add non-cont unary tests
* ggml : update unary asserts and "supports_op"
ggml-ci
Diffstat (limited to 'ggml-cuda.cu')
-rw-r--r-- | ggml-cuda.cu | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ggml-cuda.cu b/ggml-cuda.cu index af10f21a..c6bc3f64 100644 --- a/ggml-cuda.cu +++ b/ggml-cuda.cu @@ -2740,7 +2740,7 @@ GGML_CALL static bool ggml_backend_cuda_supports_op(ggml_backend_t backend, cons case GGML_UNARY_OP_HARDSWISH: case GGML_UNARY_OP_GELU_QUICK: case GGML_UNARY_OP_TANH: - return true; + return ggml_is_contiguous(op->src[0]); default: return false; } |