mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-09-06 18:01:08 +00:00
nn-cli: fix get_output index (#4543)
This commit is contained in:
parent
6b51c61f5e
commit
f90cc086ad
|
@ -406,7 +406,7 @@ retry:
|
|||
exit(1);
|
||||
}
|
||||
nnret =
|
||||
wasi_ephemeral_nn_get_output(c, 0, resultbuf, resultbufsz, &resultsz);
|
||||
wasi_ephemeral_nn_get_output(c, idx, resultbuf, resultbufsz, &resultsz);
|
||||
if (nnret == wasi_ephemeral_nn_error_too_large) {
|
||||
resultbufsz *= 2;
|
||||
goto retry;
|
||||
|
|
Loading…
Reference in New Issue
Block a user