Transfer weight from one architecture to the other

Hi everyone !
Currently I have 2 network architecture in two different repo, and I want to load and use the weight in .pth file of one network as pretrain weight for another network. I have copied the .pth file from one repo to the other, but when I called method torch.load(), it show this error “no module name ” . I think this problem come from the .pth file are not in it previous repo so there are some interaction that cannot happen. Could you please give me some advice ? thank you so much !