Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Saving and Loading trpo model for policynn #34

Open
ryanmaxwell96 opened this issue Jun 8, 2020 · 1 comment
Open

Saving and Loading trpo model for policynn #34

ryanmaxwell96 opened this issue Jun 8, 2020 · 1 comment

Comments

@ryanmaxwell96
Copy link

Hello,

I'm sorry for asking so many questions. But would you know how to go about saving and loading the subclassed model? I have tried everything I can think of including trying to change the subclassed model to a functional or sequential but I just keep running into issues.

Thanks,

Ryan

@bernardocortez
Copy link

I struggled with the same thing! I decided to do it in the hard way: save the weights of the network, all the important variables of the model that I want to keep track of and the replay buffers.
This is not perfect, however, since I have experienced that the agent always gets worse if loaded. I read somewhere that it might has something to do with the state of the optimizer

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants