You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/Users/Matteo/PycharmProjects/torchrl/examples/multiagent/prova.py", line 25, in<module>
policy_module.load_state_dict(dict)
File "/opt/homebrew/Caskroom/miniforge/base/envs/torchrl/lib/python3.9/site-packages/torch/nn/modules/module.py", line 2138, in load_state_dict
load(self, state_dict)
File "/opt/homebrew/Caskroom/miniforge/base/envs/torchrl/lib/python3.9/site-packages/torch/nn/modules/module.py", line 2126, in load
load(child, child_state_dict, child_prefix)
File "/opt/homebrew/Caskroom/miniforge/base/envs/torchrl/lib/python3.9/site-packages/torch/nn/modules/module.py", line 2126, in load
load(child, child_state_dict, child_prefix)
File "/opt/homebrew/Caskroom/miniforge/base/envs/torchrl/lib/python3.9/site-packages/torch/nn/modules/module.py", line 2120, in load
module._load_from_state_dict(
File "/Users/Matteo/PycharmProjects/tensordict/tensordict/nn/params.py", line 994, in _load_from_state_dict
TensorDict(
File "/Users/Matteo/PycharmProjects/tensordict/tensordict/base.py", line 2455, in get
return self._get_tuple(key, default=default)
File "/Users/Matteo/PycharmProjects/tensordict/tensordict/_td.py", line 1647, in _get_tuple
first = self._get_str(key[0], default)
File "/Users/Matteo/PycharmProjects/tensordict/tensordict/_td.py", line 1643, in _get_str
return self._default_get(first_key, default)
File "/Users/Matteo/PycharmProjects/tensordict/tensordict/base.py", line 2433, in _default_get
raise KeyError(
KeyError: 'key "module.params" not found in TensorDict with keys [\'module\']'
The text was updated successfully, but these errors were encountered:
Bug that prevents restoring multiagent networks after #1921
The text was updated successfully, but these errors were encountered: