| 24 | } |
| 25 | |
| 26 | Runtime::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 | |
| 35 | int WasiNNRPCServer(int Argc, const char *Argv[]) noexcept { |
| 36 | std::ios::sync_with_stdio(false); |
no test coverage detected