]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
tests : restore unary tests (#0)
authorGeorgi Gerganov <redacted>
Sat, 11 May 2024 13:47:45 +0000 (16:47 +0300)
committerGeorgi Gerganov <redacted>
Sat, 11 May 2024 18:30:08 +0000 (21:30 +0300)
tests/test-backend-ops.cpp

index 5fe6471b62ba612c79fdab8d3a77e69899af1c46..731788b958fca7b8c493e32047fd82da8d30dbb8 100644 (file)
@@ -1932,6 +1932,7 @@ static bool test_backend(ggml_backend_t backend, test_mode mode, const char * op
     // unary ops
     for (int op = 0; op < GGML_UNARY_OP_COUNT; op++) {
         test_cases.emplace_back(new test_unary((ggml_unary_op) op));
+        test_cases.emplace_back(new test_unary((ggml_unary_op) op, GGML_TYPE_F32, { 7, 13, 19, 23 }));
     }
 
     test_cases.emplace_back(new test_get_rows(GGML_TYPE_F32, 1, 8, 2, 1, false));