Skip to content

Commit e163225

Browse files
committed
Fix softplus calls
1 parent 1aed3d7 commit e163225

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ggml/src/ggml.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2716,8 +2716,8 @@ struct ggml_tensor * ggml_xielu(
27162716
struct ggml_tensor * result = ggml_dup_tensor(ctx, a);
27172717

27182718
ggml_set_op_params_i32(result, 0, (int32_t) GGML_UNARY_OP_XIELU);
2719-
ggml_set_op_params_f32(result, 1, beta + ggml_softplus(alpha_n));
2720-
ggml_set_op_params_f32(result, 2, ggml_softplus(alpha_p));
2719+
ggml_set_op_params_f32(result, 1, beta + ggml_compute_softplus_f32(alpha_n));
2720+
ggml_set_op_params_f32(result, 2, ggml_compute_softplus_f32(alpha_p));
27212721
ggml_set_op_params_f32(result, 3, beta);
27222722
ggml_set_op_params_f32(result, 4, eps);
27232723

0 commit comments

Comments
 (0)