aboutsummaryrefslogtreecommitdiff
path: root/liblangdet/model_blas.c
diff options
context:
space:
mode:
authorOnur Gündüz <ogunduz@gmail.com>2026-09-29 14:38:02 +0200
committerOnur Gündüz <ogunduz@gmail.com>2026-09-29 14:38:02 +0200
commit91c6aa07597462705a7f30ee5b97e2c7943b5616 (patch)
treeb16f686279a1f1b0691a6c0d65a544084fcc1c1e /liblangdet/model_blas.c
parent6f98fc8cf3f7cc4b9d523d16492a07d3e2aea8c9 (diff)
downloadlangdet-91c6aa07597462705a7f30ee5b97e2c7943b5616.tar.gz
langdet-91c6aa07597462705a7f30ee5b97e2c7943b5616.zip
Remove unused checkpoint, tokenizer, and attention compatibility paths
Diffstat (limited to 'liblangdet/model_blas.c')
-rw-r--r--liblangdet/model_blas.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/liblangdet/model_blas.c b/liblangdet/model_blas.c
index 41f9237..d26db32 100644
--- a/liblangdet/model_blas.c
+++ b/liblangdet/model_blas.c
@@ -55,8 +55,8 @@ int ensure_buffers(langdet_workspace_t *ws, const langdet_config_t *c, int seq)
return 0;
}
-void ensure_attention_scores(langdet_workspace_t *ws, const int *offsets, int batch) {
- size_t bytes = bidirectional_gqa_attention_packed_scratch_bytes(offsets, batch);
+void ensure_attention_scores(langdet_workspace_t *ws, int seq) {
+ size_t bytes = attention_scratch_bytes(seq);
if (bytes <= ws->attn_scores_bytes)
return;