Skip to content

Commit ff4ed2f

Browse files
remove wasm_load_by_name from old wasi-nn
1 parent c5414fd commit ff4ed2f

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,6 @@ static NativeSymbol native_symbols_wasi_nn[] = {
697697
REG_NATIVE_FUNC(get_output, "(ii*i*)i"),
698698
#else /* WASM_ENABLE_WASI_EPHEMERAL_NN == 0 */
699699
REG_NATIVE_FUNC(load, "(*ii*)i"),
700-
REG_NATIVE_FUNC(load_by_name, "(*i*)i"),
701700
REG_NATIVE_FUNC(init_execution_context, "(i*)i"),
702701
REG_NATIVE_FUNC(set_input, "(ii*)i"),
703702
REG_NATIVE_FUNC(compute, "(i)i"),

core/iwasm/libraries/wasi-nn/test/utils.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
#include <stdio.h>
1111
#include <stdlib.h>
12-
#define USE_WASM_LOAD_BY_NAME 1
1312

1413
wasi_nn_error
1514
wasm_load(char *model_name, graph *g, execution_target target)
@@ -110,7 +109,7 @@ run_inference(execution_target target, float *input, uint32_t *input_size,
110109
{
111110
graph graph;
112111

113-
#if USE_WASM_LOAD_BY_NAME == 0
112+
#if WASM_ENABLE_WASI_EPHEMERAL_NN == 0
114113
if (wasm_load(model_name, &graph, target) != success) {
115114
#else
116115
if (wasm_load_by_name(model_name, &graph) != success) {

0 commit comments

Comments
 (0)