I want to replace the parameters of a net with new parameters. e.g.
del net3.conv0.weight
net3.conv0.weight = net.conv0.weight + net2.conv0.weight
but I have the string name of the layer. Is that possible to be done?
I looked into self.convs = nn.ModuleList()
but wasn’t sure if that was good or what was the best option…
Context:
perhaps:
setattr(self,f'bn2D_conv{i}',bn)