Thanks for your reply ! 
I found the issue discussed in this tutorial, section “Handling a few special layers in checkpointing” : https://github.com/prigoyal/pytorch_memonger/blob/master/tutorial/Checkpointing_for_PyTorch_models.ipynb 3