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

Function LITE_make_default_network

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

Source from the content-addressed store, hash-verified

197}
198
199int LITE_make_default_network(LiteNetwork* network) {
200 LITE_CAPI_BEGIN();
201 LITE_ASSERT(network, "The network pass to LITE api is null");
202 auto lite_network = std::make_shared<lite::Network>();
203 LITE_LOCK_GUARD(mtx_network);
204 get_gloabl_network_holder()[lite_network.get()] = lite_network;
205 *network = lite_network.get();
206 LITE_CAPI_END();
207}
208
209int LITE_make_network(
210 LiteNetwork* network, const LiteConfig config, const LiteNetworkIO network_io) {

Callers 1

TESTFunction · 0.85

Calls 1

getMethod · 0.45

Tested by 1

TESTFunction · 0.68