Remove unneeded llama_get_num_logits() function

This commit is contained in:
Branden Butler 2023-05-10 17:47:22 -05:00
parent e0acd1a7bf
commit 58d848dadd
2 changed files with 0 additions and 6 deletions

View file

@ -2779,10 +2779,6 @@ float * llama_get_logits(struct llama_context * ctx) {
return ctx->logits.data();
}
size_t llama_get_num_logits(struct llama_context * ctx) {
return ctx->logits.size();
}
float * llama_get_embeddings(struct llama_context * ctx) {
return ctx->embedding.data();
}

View file

@ -178,8 +178,6 @@ extern "C" {
// Cols: n_vocab
LLAMA_API float * llama_get_logits(struct llama_context * ctx);
LLAMA_API size_t llama_get_num_logits(struct llama_context * ctx);
// Get the embeddings for the input
// shape: [n_embd] (1-dimensional)
LLAMA_API float * llama_get_embeddings(struct llama_context * ctx);