PaddlePaddle / PARL

A high-performance distributed training framework for Reinforcement Learning
https://parl.readthedocs.io/
Apache License 2.0
3.24k stars 819 forks source link

在训练和验证时如何如何设置model.train()和model.eval() #915

Closed tangmingkai closed 2 years ago

tangmingkai commented 2 years ago

在训练和验证时如何如何设置model.train()和model.eval(), 好像在algorithm里面没有设置

TomorrowIsAnOtherDay commented 2 years ago

目前我们是没有该接口的,这个需求已放在todo里面了,近期将会完成开发,感谢你的反馈。

TomorrowIsAnOtherDay commented 2 years ago

hello,这个API已经增加,目前可以在agent中直接调用。 https://parl.readthedocs.io/zh_CN/latest/apis/agent.html#parl.core.paddle.agent.Agent.eval