So, using this,



 ptrblck:

mlist = nn.ModuleList([
    nn.Linear(1, 2),
    nn.Linear(2, 3),
    nn.Linear(3, 4)])

model = nn.Sequential(*mlist)
model(torch.randn(1, 1))



will it be possible to assign UNet encoder parameters to a completely different model? Let’s say if I have weights and biases of the encoder part of the UNet, can I assign those values to a model that I have created using the way you mentioned? Only, in the tuple, I will have the filter size as mentioned.