aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/tools/freeze_graph.py
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/python/tools/freeze_graph.py')
-rw-r--r--tensorflow/python/tools/freeze_graph.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/python/tools/freeze_graph.py b/tensorflow/python/tools/freeze_graph.py
index 21e4a84551..18f1e90596 100644
--- a/tensorflow/python/tools/freeze_graph.py
+++ b/tensorflow/python/tools/freeze_graph.py
@@ -94,7 +94,7 @@ def freeze_graph(input_graph, input_saver, input_binary, input_checkpoint,
if input_binary:
input_graph_def.ParseFromString(f.read())
else:
- text_format.Merge(f.read(), input_graph_def)
+ text_format.Merge(f.read().decode("utf-8"), input_graph_def)
# Remove all the explicit device specifications for this node. This helps to
# make the graph more portable.
if clear_devices: