reserve correct size for logits
This commit is contained in:
parent
3d59769c3b
commit
8ed3c3fe2a
1 changed files with 1 additions and 1 deletions
|
@ -1787,7 +1787,7 @@ struct llama_context * llama_init_from_file(
|
|||
if (params.logits_all) {
|
||||
ctx->logits.reserve(hparams.n_ctx*hparams.n_vocab);
|
||||
} else {
|
||||
ctx->logits.reserve(hparams.n_ctx);
|
||||
ctx->logits.reserve(hparams.n_vocab);
|
||||
}
|
||||
|
||||
if (params.embedding){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue