Remove unneeded llama_get_num_logits() function
This commit is contained in:
parent
e0acd1a7bf
commit
58d848dadd
2 changed files with 0 additions and 6 deletions
|
@ -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();
|
||||
}
|
||||
|
|
2
llama.h
2
llama.h
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue