I encountered this issue with loading an optimizer from a checkpoint today: https://github.com/pytorch/pytorch/issues/2830 13
Is this comment still the preferred way to address the issue? https://github.com/pytorch/pytorch/issues/2830#issuecomment-336194949 3