We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fe7e07 commit 7e075beCopy full SHA for 7e075be
tests/test-backend-ops.cpp
@@ -1072,7 +1072,16 @@ struct test_unary : public test_case {
1072
ggml_set_name(a, "a");
1073
}
1074
1075
- ggml_tensor * out = ggml_unary(ctx, a, op);
+ ggml_tensor * out;
1076
+ if (op == GGML_UNARY_OP_REGLU) {
1077
+ out = ggml_reglu(ctx, a);
1078
+ } else if (op == GGML_UNARY_OP_GEGLU) {
1079
+ out = ggml_geglu(ctx, a);
1080
+ } else if (op == GGML_UNARY_OP_SWIGLU) {
1081
+ out = ggml_swiglu(ctx, a);
1082
+ } else {
1083
+ out = ggml_unary(ctx, a, op);
1084
+ }
1085
ggml_set_name(out, "out");
1086
1087
return out;
0 commit comments