reserve correct size for logits

This commit is contained in:
xaedes 2023-04-14 02:38:10 +02:00
parent 3d59769c3b
commit 8ed3c3fe2a
No known key found for this signature in database
GPG key ID: 30030EDD817EA2B1

View file

@ -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){