There is a problem when saving and loading the agent for the second time. The issue raises when loading the optimizer in the _target_critic_approximator in SAC and target_approximator in DQN.
File "/home/puze/miniconda3/envs/py38/lib/python3.8/site-packages/torch/optim/adam.py", line 61, in __setstate__ step_is_tensor = (len(state_values) != 0) and torch.is_tensor(state_values[0]['step'])
There is a problem when saving and loading the agent for the second time. The issue raises when loading the
optimizer
in the_target_critic_approximator
in SAC andtarget_approximator
in DQN.File "/home/puze/miniconda3/envs/py38/lib/python3.8/site-packages/torch/optim/adam.py", line 61, in __setstate__ step_is_tensor = (len(state_values) != 0) and torch.is_tensor(state_values[0]['step'])