If a module contains a dictionary which has other two modules as following, can I get parameters of model_dict[‘model1’] and model_dict[‘model2’] with outer_network.state_dict()? Or is there any solutions to get parameters of modules from a dictionary?
class inner_network_1(nn.Module):
    def __init__(self):
        super(inner_network_1, self).__init__()
        self.inner_fc = nn.Linear(20, 30)

class inner_network_2(nn.Module):
    def __init__(self):
        super(inner_network_2, self).__init__()
        self.inner_fc = nn.Linear(20, 30)

class outer_network(nn.Module):
    def __init__(self):
        super(outer_network, self).__init__()
        self.fc = nn.Linear(10, 20)
        model_dict = {}
        model_dict['model1'] = inner_network_1()
        model_dict['model2'] = inner_network_2()