Skip to content

Commit 9e03970

Browse files
committed
Fix bugs
1 parent 1cca0b8 commit 9e03970

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

core/iwasm/common/wasm_runtime_common.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1725,12 +1725,12 @@ wasi_nn_graph_registry_set_args(struct wasi_nn_graph_registry *registry,
17251725
return true;
17261726
}
17271727

1728-
int
1728+
static int
17291729
wasi_nn_graph_registry_create(struct wasi_nn_graph_registry **registryp)
17301730
{
17311731
struct wasi_nn_graph_registry *args = wasm_runtime_malloc(sizeof(*args));
17321732
if (args == NULL) {
1733-
return false;
1733+
return -1;
17341734
}
17351735
wasm_runtime_wasi_nn_graph_registry_args_set_defaults(args);
17361736
*registryp = args;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
#define LLAMACPP_BACKEND_LIB "libwasi_nn_llamacpp" LIB_EXTENTION
3636
#define ONNX_BACKEND_LIB "libwasi_nn_onnx" LIB_EXTENTION
3737

38-
#define MAX_GLOBAL_GRAPHS_PER_INST 4 // ONNX only allows 4 graphs per instance
38+
#define MAX_GLOBAL_GRAPHS_PER_INST 4
3939

4040
/* Global variables */
4141
static korp_mutex wasi_nn_lock;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
tensorflow==2.14.0
1+
tensorflow==2.12.0
22
numpy==1.24.4

0 commit comments

Comments
 (0)