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

Function loadPlugins

lib/driver/wasiNNRPCServerTool.cpp:18–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16namespace Driver {
17
18void loadPlugins(void) {
19 Plugin::Plugin::loadFromDefaultPaths();
20 for (const auto &Plugin : Plugin::Plugin::plugins()) {
21 spdlog::info("Loaded Plugin: {} from path: {}"sv, Plugin.name(),
22 Plugin.path());
23 }
24}
25
26Runtime::Instance::ModuleInstance *createWasiNNModule() {
27 if (const auto *Plugin = Plugin::Plugin::find("wasi_nn"sv)) {

Callers 1

WasiNNRPCServerFunction · 0.85

Calls 2

pathMethod · 0.80
nameMethod · 0.45

Tested by

no test coverage detected