How to load weights which was trained older version of PyTorch?

I encounted this error too when I used pytorch 1.4. But when I use pytorch 1.8, this error dispeared

1 Like