mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-09-08 02:41:13 +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);
|
exit(1);
|
||||||
}
|
}
|
||||||
nnret =
|
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) {
|
if (nnret == wasi_ephemeral_nn_error_too_large) {
|
||||||
resultbufsz *= 2;
|
resultbufsz *= 2;
|
||||||
goto retry;
|
goto retry;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user