| 42 | } |
| 43 | |
| 44 | void 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 | |
| 53 | void NetworkImplDft::application_config() { |
| 54 | auto device_type = m_user_config->device_type; |