Skip to content

Commit ea5757f

Browse files
authored
wasi-nn: do not assign wasi_nn_ctx->backend multiple times (#4329)
1 parent 4d6b8dc commit ea5757f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,6 @@ wasi_nn_load_by_name(wasm_exec_env_t exec_env, char *name, uint32_t name_len,
517517
if (res != success)
518518
return res;
519519

520-
wasi_nn_ctx->backend = loaded_backend;
521520
wasi_nn_ctx->is_model_loaded = true;
522521
return success;
523522
}
@@ -577,7 +576,6 @@ wasi_nn_load_by_name_with_config(wasm_exec_env_t exec_env, char *name,
577576
if (res != success)
578577
return res;
579578

580-
wasi_nn_ctx->backend = loaded_backend;
581579
wasi_nn_ctx->is_model_loaded = true;
582580
return success;
583581
}

0 commit comments

Comments
 (0)