Skip to content

Commit d4340a9

Browse files
committed
wasi_nn_llamacpp.c: remove an unused variable
1 parent 1e41519 commit d4340a9

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

core/iwasm/libraries/wasi-nn/src/wasi_nn_llamacpp.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,6 @@ compute(void *ctx, graph_execution_context exec_ctx)
477477

478478
// main loop
479479
int32_t n_cur = batch.n_tokens;
480-
int n_decode = 0;
481480
int32_t n_vocab = llama_n_vocab(backend_ctx->model);
482481
llama_token_data *candidates = NULL;
483482

@@ -528,7 +527,6 @@ compute(void *ctx, graph_execution_context exec_ctx)
528527
// push this new token for next evaluation
529528
llama_batch_add(&batch, new_token_id, n_cur, seq_ids,
530529
sizeof(seq_ids) / sizeof(seq_ids[0]), true);
531-
n_decode++;
532530
n_cur++;
533531

534532
if (llama_decode(backend_ctx->ctx, batch) != 0) {

0 commit comments

Comments
 (0)