aboutsummaryrefslogtreecommitdiff
path: root/embed.h
diff options
context:
space:
mode:
authorOnur Gündüz <ogunduz@gmail.com>2026-06-15 13:47:23 +0200
committerOnur Gündüz <ogunduz@gmail.com>2026-06-15 13:53:31 +0200
commit458563c163a885e336ef3365922af4d17e578f56 (patch)
tree52c7515d418e60f4923a69b5eade794a221cc5b4 /embed.h
parentd58e523c14356ac8a29480528dbceb19290b18c1 (diff)
downloadffwd-458563c163a885e336ef3365922af4d17e578f56.tar.gz
ffwd-458563c163a885e336ef3365922af4d17e578f56.zip
all: add CLS first-token pooling
Diffstat (limited to 'embed.h')
-rw-r--r--embed.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/embed.h b/embed.h
index ef36359..197ee7f 100644
--- a/embed.h
+++ b/embed.h
@@ -40,6 +40,7 @@ typedef enum {
typedef enum {
EMBED_POOL_MEAN = 0,
EMBED_POOL_LAST_TOKEN = 1,
+ EMBED_POOL_CLS = 2, /* first token; the encoder-family [CLS] sentence vector */
} embed_pooling_mode_t;
typedef struct {