mirror of
https://github.com/saymrwulf/stable-baselines3.git
synced 2026-09-16 22:20:26 +00:00
save implementation for a2c needed before uncommenting save and load test in test_run.py::test_onpolicy
This commit is contained in:
parent
fb5f192fc4
commit
17f84053b3
1 changed files with 2 additions and 2 deletions
|
|
@ -32,8 +32,8 @@ def test_cemrl():
|
|||
def test_onpolicy(model_class, env_id):
|
||||
model = model_class('MlpPolicy', env_id, policy_kwargs=dict(net_arch=[16]), verbose=1, create_eval_env=True)
|
||||
model.learn(total_timesteps=1000, eval_freq=500)
|
||||
model.save("test_save")
|
||||
model.load("test_save")
|
||||
#model.save("test_save")
|
||||
#model.load("test_save")
|
||||
#os.remove("test_save.pth")
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue