mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2025-06-26 19:55:04 +00:00
special case gated ops
This commit is contained in:
committed by
Akarshan
parent
21c4963bd3
commit
bb2fda70ae
@ -1072,7 +1072,16 @@ struct test_unary : public test_case {
|
||||
ggml_set_name(a, "a");
|
||||
}
|
||||
|
||||
ggml_tensor * out = ggml_unary(ctx, a, op);
|
||||
ggml_tensor * out;
|
||||
if (op == GGML_UNARY_OP_REGLU) {
|
||||
out = ggml_reglu(ctx, a);
|
||||
} else if (op == GGML_UNARY_OP_GEGLU) {
|
||||
out = ggml_geglu(ctx, a);
|
||||
} else if (op == GGML_UNARY_OP_SWIGLU) {
|
||||
out = ggml_swiglu(ctx, a);
|
||||
} else {
|
||||
out = ggml_unary(ctx, a, op);
|
||||
}
|
||||
ggml_set_name(out, "out");
|
||||
|
||||
return out;
|
||||
|
Reference in New Issue
Block a user