Apply suggestions from code review
Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
This commit is contained in:
parent
11b1564efb
commit
f732003622
1 changed files with 2 additions and 2 deletions
|
@ -17170,7 +17170,7 @@ static int llama_decode_internal(
|
|||
|
||||
// temporary allocate memory for the input batch if needed
|
||||
llama_batch_allocr batch_allocr(lctx, inp_batch);
|
||||
llama_batch batch = batch_allocr.batch;
|
||||
const llama_batch & batch = batch_allocr.batch;
|
||||
const uint32_t n_tokens_all = batch.n_tokens;
|
||||
|
||||
const auto & model = lctx.model;
|
||||
|
@ -17488,7 +17488,7 @@ static int llama_encode_internal(
|
|||
|
||||
// temporary allocate memory for the input batch if needed
|
||||
llama_batch_allocr batch_allocr(lctx, inp_batch);
|
||||
llama_batch batch = batch_allocr.batch;
|
||||
const llama_batch & batch = batch_allocr.batch;
|
||||
const uint32_t n_tokens = batch.n_tokens;
|
||||
|
||||
const auto & model = lctx.model;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue