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

Function LITE_make_network

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

Source from the content-addressed store, hash-verified

207}
208
209int LITE_make_network(
210 LiteNetwork* network, const LiteConfig config, const LiteNetworkIO network_io) {
211 LITE_CAPI_BEGIN();
212 LITE_ASSERT(network, "The network pass to LITE api is null");
213 auto lite_network = std::make_shared<lite::Network>(
214 convert_to_lite_config(config), convert_to_lite_io(network_io));
215 LITE_LOCK_GUARD(mtx_network);
216 get_gloabl_network_holder()[lite_network.get()] = lite_network;
217 *network = lite_network.get();
218 LITE_CAPI_END();
219}
220
221int LITE_make_network_config(LiteNetwork* network, const LiteConfig config) {
222 LITE_CAPI_BEGIN();

Callers 5

basic_c_interfaceFunction · 0.85
device_io_c_interfaceFunction · 0.85
async_c_interfaceFunction · 0.85
basic_c_interfaceFunction · 0.85
TESTFunction · 0.85

Calls 3

convert_to_lite_configFunction · 0.85
convert_to_lite_ioFunction · 0.85
getMethod · 0.45

Tested by 1

TESTFunction · 0.68