Skip to content

Commit f90cc08

Browse files
authored
nn-cli: fix get_output index (#4543)
1 parent 6b51c61 commit f90cc08

File tree

1 file changed

+1
-1
lines changed
  • wamr-wasi-extensions/samples/nn-cli

1 file changed

+1
-1
lines changed

wamr-wasi-extensions/samples/nn-cli/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ get_output(char *options)
406406
exit(1);
407407
}
408408
nnret =
409-
wasi_ephemeral_nn_get_output(c, 0, resultbuf, resultbufsz, &resultsz);
409+
wasi_ephemeral_nn_get_output(c, idx, resultbuf, resultbufsz, &resultsz);
410410
if (nnret == wasi_ephemeral_nn_error_too_large) {
411411
resultbufsz *= 2;
412412
goto retry;

0 commit comments

Comments
 (0)