summaryrefslogtreecommitdiff
path: root/ggml/include/ggml.h
diff options
context:
space:
mode:
Diffstat (limited to 'ggml/include/ggml.h')
-rw-r--r--ggml/include/ggml.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/ggml/include/ggml.h b/ggml/include/ggml.h
index 026993db..17d3cb1a 100644
--- a/ggml/include/ggml.h
+++ b/ggml/include/ggml.h
@@ -514,6 +514,7 @@ extern "C" {
GGML_OP_TIMESTEP_EMBEDDING,
GGML_OP_ARGSORT,
GGML_OP_LEAKY_RELU,
+ GGML_OP_SOFTCAP,
GGML_OP_FLASH_ATTN_EXT,
GGML_OP_FLASH_ATTN_BACK,
@@ -1223,6 +1224,19 @@ extern "C" {
struct ggml_tensor * a,
float s);
+ GGML_API struct ggml_tensor * ggml_softcap(
+ struct ggml_context * ctx,
+ struct ggml_tensor * a,
+ float s_before,
+ float s_after);
+
+ // in-place, returns view(a)
+ GGML_API struct ggml_tensor * ggml_softcap_inplace(
+ struct ggml_context * ctx,
+ struct ggml_tensor * a,
+ float s_before,
+ float s_after);
+
// b -> view(a,offset,nb1,nb2,3), return modified a
GGML_API struct ggml_tensor * ggml_set(
struct ggml_context * ctx,