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
hey omid,
why when I am running your simple NN code it raises error:
return bytes_or_text.decode(encoding)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 85: invalid start byte
It has problem with last part I mean optimization,
persian girl
The text was updated successfully, but these errors were encountered:
Actually, it is the problem with version of python. When you use python 3.x you should make some change.
I just change all the w and r into wb and rb in tf.gfile.Open and tf.gfile.FastGFile and it works.
complete code looks like:
from tensorflow.python.tools import optimize_for_inference_lib
input_graph_def = tf.GraphDef()
with tf.gfile.Open(output_frozen_graph_name, "rb") as f:
data = f.read()
input_graph_def.ParseFromString(data)
output_graph_def = optimize_for_inference_lib.optimize_for_inference(
input_graph_def,
["I"], # an array of the input node(s)
["O"], # an array of output nodes
tf.float32.as_datatype_enum)
# Save the optimized graph
f = tf.gfile.FastGFile(output_optimized_graph_name, "wb")
f.write(output_graph_def.SerializeToString())
hey omid,
why when I am running your simple NN code it raises error:
return bytes_or_text.decode(encoding)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 85: invalid start byte
It has problem with last part I mean optimization,
persian girl
The text was updated successfully, but these errors were encountered: