How to store, load and run model #32
Unanswered
Samureimer
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi.
What is the indented way to store, load and run a model?
It seems trivial to save the model by calling ".save(path)" on the agent but loading the model again seems convoluted. Or maybe I just don't understand how to do it correctly.
I have to instantiate a options class for my agent with the same parameters used for the training.
I then have to instantiate a list of environments that I have no use for.
I can then instantiate the agent with the options and environments parameters.
I'm then able to load a model.
Running the model with GetActionsBatchAsync and isTraining=false then throws an exception:
System.AggregateException: 'One or more errors occurred. (mat1 and mat2 shapes cannot be multiplied (1x44 and 45x1024)
I am able to run the agent if I set isTraining=true. This I assume alters the model over time.
Isn't it possible to just load a model from path, feed it state data and get a action in return?
Beta Was this translation helpful? Give feedback.
All reactions