Skip to content

Commit 8ed89e2

Browse files
authored
wasi_nn_llamacpp.c: remove an unused variable (#4415)
1 parent d6876f1 commit 8ed89e2

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

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

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

481481
// main loop
482482
int32_t n_cur = batch.n_tokens;
483-
int n_decode = 0;
484483
int32_t n_vocab = llama_n_vocab(backend_ctx->model);
485484
llama_token_data *candidates = NULL;
486485

@@ -531,7 +530,6 @@ compute(void *ctx, graph_execution_context exec_ctx)
531530
// push this new token for next evaluation
532531
llama_batch_add(&batch, new_token_id, n_cur, seq_ids,
533532
sizeof(seq_ids) / sizeof(seq_ids[0]), true);
534-
n_decode++;
535533
n_cur++;
536534

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

0 commit comments

Comments
 (0)