You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to export the resulting model to TFLite so I can run inference on another device, but I'm hitting some issues. I found instructions on how to export a model in the Stable Baselines documentation and tried adapting it for PPO1 instead of PPO2, however when I try and load the resulting SavedModel I get an exception about the Tensor not existing.
And the full error message: KeyError: "The name 'input/Ob:0' refers to a Tensor which does not exist. The operation, 'input/Ob', does not exist in the graph."
I've verified that ppo_model is being loaded correctly by running the inference (using ppo_model.action_probability()), so I don't believe there's an issue there. The SavedModel directory does get created on the tf.saved_model.simple_save step, however I believe it may not be a complete export as the size is very small.
I'm rather new to the ML side of things, so there might be something obvious that I'm missing, so any help would be greatly appreciated!
Thanks for putting together this great library!
The text was updated successfully, but these errors were encountered:
I'm trying to export the resulting model to TFLite so I can run inference on another device, but I'm hitting some issues. I found instructions on how to export a model in the Stable Baselines documentation and tried adapting it for PPO1 instead of PPO2, however when I try and load the resulting SavedModel I get an exception about the Tensor not existing.
Here's the code:
And the full error message:
KeyError: "The name 'input/Ob:0' refers to a Tensor which does not exist. The operation, 'input/Ob', does not exist in the graph."
I've verified that
ppo_model
is being loaded correctly by running the inference (usingppo_model.action_probability()
), so I don't believe there's an issue there. The SavedModel directory does get created on thetf.saved_model.simple_save
step, however I believe it may not be a complete export as the size is very small.I'm rather new to the ML side of things, so there might be something obvious that I'm missing, so any help would be greatly appreciated!
Thanks for putting together this great library!
The text was updated successfully, but these errors were encountered: