tests : add non-cont unary tests (#7857)

* tests : add non-cont unary tests

* ggml : update unary asserts and "supports_op"

ggml-ci
This commit is contained in:
Georgi Gerganov 2024-06-12 16:00:22 +03:00 committed by GitHub
parent bfaa676b08
commit a9cae48003
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 90 additions and 66 deletions

View file

@ -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;
}