Skip to content

DQN save/restore not able to be restored #1150

Answered by lanctot
shawnthesun123 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

This is almost always because the TF environment (graph) looks different when restoring than when it was saved.

For TF to load properly, the graph has to be exactly the same. So e.g. if you trained with multiple copies of DQN, you have to recreate that environment with multiple DQN agents upon loading, even if you only intend to use one of them, because TF will recreate the graph the same way as during training.

Could this be it? If not, I will try locally tomorrow to see if there is an existing issue with saving/loading.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@shawnthesun123
Comment options

@lanctot
Comment options

@shawnthesun123
Comment options

@lanctot
Comment options

@shawnthesun123
Comment options

Answer selected by lanctot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants