MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / createWasiNNModule

Function createWasiNNModule

lib/driver/wasiNNRPCServerTool.cpp:26–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26Runtime::Instance::ModuleInstance *createWasiNNModule() {
27 if (const auto *Plugin = Plugin::Plugin::find("wasi_nn"sv)) {
28 if (const auto *Module = Plugin->findModule("wasi_nn"sv)) {
29 return Module->create().release();
30 }
31 }
32 return nullptr;
33}
34
35int WasiNNRPCServer(int Argc, const char *Argv[]) noexcept {
36 std::ios::sync_with_stdio(false);

Callers 1

WasiNNRPCServerFunction · 0.85

Calls 3

findModuleMethod · 0.45
releaseMethod · 0.45
createMethod · 0.45

Tested by

no test coverage detected