| 197 | } |
| 198 | |
| 199 | int 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 | |
| 209 | int LITE_make_network( |
| 210 | LiteNetwork* network, const LiteConfig config, const LiteNetworkIO network_io) { |