Skip to content

Commit e4d2673

Browse files
authored
wasi-nn: add a comment on load_by_name_with_config (#4492)
this api has been introduced by #3709 in which i couldn't find any explanations. this comment is my best guess.
1 parent 248e10b commit e4d2673

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -780,6 +780,12 @@ static NativeSymbol native_symbols_wasi_nn[] = {
780780
#if WASM_ENABLE_WASI_EPHEMERAL_NN != 0
781781
REG_NATIVE_FUNC(load, "(*iii*)i"),
782782
REG_NATIVE_FUNC(load_by_name, "(*i*)i"),
783+
784+
/* load_by_name_with_config is intented to be compatible with
785+
* a wasmedge extension.
786+
* https://github.com/second-state/wasmedge-wasi-nn/pull/2
787+
* https://github.com/WasmEdge/WasmEdge/blob/5553924e8cdccdc2cbd2a6a6d0ed9b11250c353e/plugins/wasi_nn/wasinnmodule.cpp#L13-L14
788+
*/
783789
REG_NATIVE_FUNC(load_by_name_with_config, "(*i*i*)i"),
784790
REG_NATIVE_FUNC(init_execution_context, "(i*)i"),
785791
REG_NATIVE_FUNC(set_input, "(ii*)i"),

0 commit comments

Comments
 (0)