AI4Finance-Foundation / AI4Finance-Foundation/FinRL-Meta
Not able to run Demo_Plug_and_Play_with_DRL_Libraries notebook at the second time
- Vorherrschende Sprache
- Python
- Sterne
- 1.9k
- Forks
- 751
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Not able to run again Demo_Plug_and_Play_with_DRL_Libraries notebook at Colab.
When you run this notebook at the second time, it will give you the error message,
RuntimeError Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/finrl/drl_agents/elegantrl/models.py in DRL_prediction(model_name, cwd, net_dimension, environment)
101 agent.init(net_dim, state_dim, action_dim)
--> 102 agent.save_or_load_agent(cwd=cwd, if_save=False)
103 act = agent.act
5 frames
RuntimeError: Error(s) in loading state_dict for ActorPPO:
size mismatch for a_std_log: copying a param with shape torch.Size([1, 29]) from checkpoint, the shape in current model is torch.Size([1, 30]).
size mismatch for net.0.0.weight: copying a param with shape torch.Size([512, 293]) from checkpoint, the shape in current model is torch.Size([512, 303]).
size mismatch for net.3.weight: copying a param with shape torch.Size([29, 512]) from checkpoint, the shape in current model is torch.Size([30, 512]).
size mismatch for net.3.bias: copying a param with shape torch.Size([29]) from checkpoint, the shape in current model is torch.Size([30]).
During handling of the above exception, another exception occurred:
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.