diff options
Diffstat (limited to 'liblangdet/model_blas.c')
| -rw-r--r-- | liblangdet/model_blas.c | 4 |
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; |
