aboutsummaryrefslogtreecommitdiff
path: root/embed_cuda.h
diff options
context:
space:
mode:
authorOnur Gündüz <ogunduz@gmail.com>2026-06-15 08:40:11 +0200
committerOnur Gündüz <ogunduz@gmail.com>2026-06-15 08:40:11 +0200
commitc4a1c97a09da6d8d88c2ac834bf6234506fc41bc (patch)
tree81ce5675ce886aad0309a41f4d6a696826e0a061 /embed_cuda.h
parentb377ba8656bfb807ed8dda6c9f26942b50ce626d (diff)
downloadffwd-c4a1c97a09da6d8d88c2ac834bf6234506fc41bc.tar.gz
ffwd-c4a1c97a09da6d8d88c2ac834bf6234506fc41bc.zip
chore: run clang-format
Diffstat (limited to 'embed_cuda.h')
-rw-r--r--embed_cuda.h20
1 files changed, 12 insertions, 8 deletions
diff --git a/embed_cuda.h b/embed_cuda.h
index b3d2c3c..b3c9582 100644
--- a/embed_cuda.h
+++ b/embed_cuda.h
@@ -28,14 +28,18 @@ EMBED_API void embed_cuda_free(embed_cuda_ctx_t *ctx);
EMBED_API const embed_config_t *embed_cuda_config(const embed_cuda_ctx_t *ctx);
-EMBED_API int embed_cuda_encode_into(embed_cuda_ctx_t *ctx, const int *token_ids,
- int n_tokens, float *out_embedding);
-EMBED_API float *embed_cuda_encode(embed_cuda_ctx_t *ctx, const int *token_ids,
- int n_tokens);
-EMBED_API int embed_cuda_encode_batch(embed_cuda_ctx_t *ctx, const embed_input_t *inputs,
- int batch, float *out_embeddings);
+EMBED_API int embed_cuda_encode_into(embed_cuda_ctx_t *ctx,
+ const int *token_ids,
+ int n_tokens,
+ float *out_embedding);
+EMBED_API float *embed_cuda_encode(embed_cuda_ctx_t *ctx, const int *token_ids, int n_tokens);
+EMBED_API int embed_cuda_encode_batch(embed_cuda_ctx_t *ctx,
+ const embed_input_t *inputs,
+ int batch,
+ float *out_embeddings);
EMBED_API int embed_cuda_encode_spans_batch(embed_cuda_ctx_t *ctx,
- const embed_context_input_t *inputs,
- int batch, float *out_embeddings);
+ const embed_context_input_t *inputs,
+ int batch,
+ float *out_embeddings);
#endif /* EMBED_CUDA_H */