MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / LITE_load_model_from_mem

Function LITE_load_model_from_mem

lite/lite-c/src/network.cpp:231–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229}
230
231int LITE_load_model_from_mem(LiteNetwork network, void* model_mem, size_t size) {
232 LITE_CAPI_BEGIN();
233 LITE_ASSERT(network, "The network pass to LITE api is null");
234 LITE_ASSERT(model_mem, "The model memory pass to LITE api is null");
235 static_cast<lite::Network*>(network)->load_model(model_mem, size);
236 LITE_CAPI_END();
237}
238
239int LITE_load_model_from_path(LiteNetwork network, const char* model_path) {
240 LITE_CAPI_BEGIN();

Callers

nothing calls this directly

Calls 1

load_modelMethod · 0.45

Tested by

no test coverage detected