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

Method shared_weight_with

lite/src/mge/network_impl.cpp:44–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void NetworkImplDft::shared_weight_with(const NetworkImplBase* src_network) {
45 application_config();
46 const auto& src_impl = src_network->cast_final_safe<NetworkImplDft>();
47 LITE_ASSERT(src_impl.m_loader, "Clone network must after the network is loaded.");
48 m_load_result = src_impl.m_loader->load(m_load_config, true);
49
50 configure_after_loaded();
51}
52
53void NetworkImplDft::application_config() {
54 auto device_type = m_user_config->device_type;

Callers

nothing calls this directly

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected