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

Function LITE_make_network_config

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

Source from the content-addressed store, hash-verified

219}
220
221int LITE_make_network_config(LiteNetwork* network, const LiteConfig config) {
222 LITE_CAPI_BEGIN();
223 LITE_ASSERT(network, "The network pass to LITE api is null");
224 auto lite_network = std::make_shared<lite::Network>(convert_to_lite_config(config));
225 LITE_LOCK_GUARD(mtx_network);
226 get_gloabl_network_holder()[lite_network.get()] = lite_network;
227 *network = lite_network.get();
228 LITE_CAPI_END();
229}
230
231int LITE_load_model_from_mem(LiteNetwork network, void* model_mem, size_t size) {
232 LITE_CAPI_BEGIN();

Callers 1

TESTFunction · 0.85

Calls 2

convert_to_lite_configFunction · 0.85
getMethod · 0.45

Tested by 1

TESTFunction · 0.68