Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

google.protobuf.message.decodeerror error parsing message #15

Closed
GermanInfinity opened this issue Jun 24, 2021 · 0 comments
Closed

google.protobuf.message.decodeerror error parsing message #15

GermanInfinity opened this issue Jun 24, 2021 · 0 comments

Comments

@GermanInfinity
Copy link

This error comes when trying to load the model from stable_solve.py (attached below)
icml_paper_model.zip

Error comes from loading model like this:
with tf.io.gfile.GFile(pbFile, "rb") as f:
graph_def = tf.compat.v1.GraphDef()
graph_def.ParseFromString(f.read())

To successfully load the model; change the way the model is saved to:
with model.graph.as_default():
tf.train.write_graph(tf.get_default_graph(), "path-to-folder", 'saved_model.pb', as_text=False)

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

No branches or pull requests

1 participant