Skip to content

Commit cd3cb6c

Browse files
use WASM_ENABLE_WASI_EPHEMERAL_NN
1 parent 801eb2b commit cd3cb6c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/iwasm/libraries/wasi-nn/src/wasi_nn_onnx.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
#include "utils/logger.h"
1515
#include "onnxruntime_c_api.h"
1616

17+
#if WASM_ENABLE_WASI_EPHEMERAL_NN == 0
18+
#error This backend doesn't support legacy "wasi_nn" abi. Please enable WASM_ENABLE_WASI_EPHEMERAL_NN.
19+
#endif
20+
1721
/* Maximum number of graphs and execution contexts */
1822
#define MAX_GRAPHS 4
1923
#define MAX_CONTEXTS 4

0 commit comments

Comments
 (0)