Reputation: 305
I have this error on this part of the code:
with tf.gfile.Open(output_frozen_graph_name, "r") as f:
data = f.read()
input_graph_def.ParseFromString(data)
and when I search for solutions all what I found solutions for regular files ,but I'm just new to tensorflow
Upvotes: 1
Views: 1273
Reputation: 36
Read it as a binary file. Replace your first line with:
with tf.gfile.Open(output_frozen_graph_name, "rb") as f:
Upvotes: 2