From 37cbaef9ceb828c667da8f398027ba5415ee7475 Mon Sep 17 00:00:00 2001 From: Onur Gündüz Date: Tue, 29 Sep 2026 13:11:00 +0200 Subject: Rename CPU library API and sources to langdet --- liblangdet/model_internal.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 liblangdet/model_internal.h (limited to 'liblangdet/model_internal.h') diff --git a/liblangdet/model_internal.h b/liblangdet/model_internal.h new file mode 100644 index 0000000..73a7851 --- /dev/null +++ b/liblangdet/model_internal.h @@ -0,0 +1,17 @@ +#ifndef LANGDET_MODEL_INTERNAL_H +#define LANGDET_MODEL_INTERNAL_H + +#include "model_types.h" +#include "alloc.h" + +/* Validate F32 dtype, exact dimensions, byte count, and mapped-file bounds. */ +int tensor_has_supported_shape(const safetensors_file_t *sf, + const safetensor_t *t, + const char *name, + const int64_t *shape, + int ndim); + +int ensure_buffers(langdet_workspace_t *ws, const langdet_config_t *cfg, int seq); +void ensure_attention_scores(langdet_workspace_t *ws, const int *offsets, int batch); + +#endif /* LANGDET_MODEL_INTERNAL_H */ -- cgit v1.3.1