I train the pytorch model(name = A) with pre-trained model(name = B). And I wrote the code like this:
Class A(nn.Module): blah blah,,,, Class B(nn.Module): blah