Skip to content

Commit 5112380

Browse files
pwilkinCISC
andauthored
Update ggml/include/ggml.h [no ci]
Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>
1 parent b9a6294 commit 5112380

File tree

1 file changed

+0
-68
lines changed

1 file changed

+0
-68
lines changed

ggml/include/ggml.h

Lines changed: 0 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,74 +1228,6 @@ extern "C" {
12281228

12291229

12301230

1231-
// xIELU activation function
1232-
// x = x * (c_a(alpha_n) + c_b(alpha_p, beta) * sigmoid(beta * x)) + eps * (x > 0)
1233-
// where c_a = softplus and c_b(a, b) = softplus(a) + b are constraining functions
1234-
// that constrain the positive and negative source alpha values respectively
1235-
GGML_API struct ggml_tensor * ggml_xielu(
1236-
struct ggml_context * ctx,
1237-
struct ggml_tensor * a,
1238-
float alpha_n,
1239-
float alpha_p,
1240-
float beta,
1241-
float eps);
1242-
1243-
GGML_API struct ggml_tensor * ggml_expm1(
1244-
struct ggml_context * ctx,
1245-
struct ggml_tensor * a);
1246-
1247-
GGML_API struct ggml_tensor * ggml_expm1_inplace(
1248-
struct ggml_context * ctx,
1249-
struct ggml_tensor * a);
1250-
1251-
GGML_API struct ggml_tensor * ggml_softplus(
1252-
struct ggml_context * ctx,
1253-
struct ggml_tensor * a);
1254-
1255-
GGML_API struct ggml_tensor * ggml_softplus_inplace(
1256-
struct ggml_context * ctx,
1257-
struct ggml_tensor * a);
1258-
1259-
GGML_API struct ggml_tensor * ggml_floor(
1260-
struct ggml_context * ctx,
1261-
struct ggml_tensor * a);
1262-
1263-
GGML_API struct ggml_tensor * ggml_floor_inplace(
1264-
struct ggml_context * ctx,
1265-
struct ggml_tensor * a);
1266-
1267-
GGML_API struct ggml_tensor * ggml_ceil(
1268-
struct ggml_context * ctx,
1269-
struct ggml_tensor * a);
1270-
1271-
GGML_API struct ggml_tensor * ggml_ceil_inplace(
1272-
struct ggml_context * ctx,
1273-
struct ggml_tensor * a);
1274-
1275-
GGML_API struct ggml_tensor * ggml_round(
1276-
struct ggml_context * ctx,
1277-
struct ggml_tensor * a);
1278-
1279-
GGML_API struct ggml_tensor * ggml_round_inplace(
1280-
struct ggml_context * ctx,
1281-
struct ggml_tensor * a);
1282-
1283-
/**
1284-
* Truncates the fractional part of each element in the tensor (towards zero).
1285-
* For example: trunc(3.7) = 3.0, trunc(-2.9) = -2.0
1286-
* Similar to std::trunc in C/C++.
1287-
*/
1288-
1289-
GGML_API struct ggml_tensor * ggml_trunc(
1290-
struct ggml_context * ctx,
1291-
struct ggml_tensor * a);
1292-
1293-
GGML_API struct ggml_tensor * ggml_trunc_inplace(
1294-
struct ggml_context * ctx,
1295-
struct ggml_tensor * a);
1296-
1297-
1298-
12991231
// xIELU activation function
13001232
// x = x * (c_a(alpha_n) + c_b(alpha_p, beta) * sigmoid(beta * x)) + eps * (x > 0)
13011233
// where c_a = softplus and c_b(a, b) = softplus(a) + b are constraining functions

0 commit comments

Comments
 (0)