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

Method set_config

lite/src/mge/network_impl.cpp:38–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36LITE_DYN_TYPE_OBJ_FINAL_IMPL(NetworkImplDft);
37
38void NetworkImplDft::set_config(const Config& config) {
39 *m_user_config = config;
40 m_compnode_locator = to_compnode_locator(m_user_config->device_type);
41 m_compnode_locator.device = config.device_id;
42}
43
44void NetworkImplDft::shared_weight_with(const NetworkImplBase* src_network) {
45 application_config();

Callers 3

network.cppFile · 0.80
NetworkMethod · 0.80
prase_modelMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected