As mentioned in title, if i’m training A and B model alternatively and A and B model are both in same structure.
During training, iteratively switching all the weights from A to B. Is there any better way to do that or if I’m doing right??
My implementation is something like this:
for s1, s2 in zip(Amodel.A_convLayers.parameters(), Bmodel.B_convLayers.parameters()):
s1 = s2