All keys matched successfully missing when loading state dict on optimizers #39625
Labels
module: optimizer
Related to torch.optim
triaged
This issue has been looked at a team member, and triaged and prioritized into an appropriate module
馃悰 Bug
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The message should be printed when optimizer state is loaded
It would be nice if load_state_dict is consistent for both models and optimizers
Environment
Collecting environment information...
PyTorch version: 1.5.0+cu101
Is debug build: No
CUDA used to build PyTorch: 10.1
OS: Ubuntu 20.04 LTS
GCC version: (Ubuntu 8.4.0-3ubuntu2) 8.4.0
CMake version: version 3.17.2
Python version: 3.8
Is CUDA available: Yes
CUDA runtime version: 10.1.105
GPU models and configuration: GPU 0: GeForce RTX 2070
Nvidia driver version: 440.64
cuDNN version: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.4
Versions of relevant libraries:
[pip3] numpy==1.18.3
[pip3] torch==1.5.0+cu101
[pip3] torchvision==0.6.0+cu101
[conda] Could not collect
Additional context
cc @vincentqb
The text was updated successfully, but these errors were encountered: