aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/quantization
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2016-10-10 10:26:22 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-10-10 11:35:00 -0700
commitedaf3b342db4afa1c872da541fb0ac176a4e8ef9 (patch)
treeb976073fdc2a6404cbdc3ee323a637e2e1b16846 /tensorflow/contrib/quantization
parentd1518c26530daaee854e73365bd7dfb9a2f69dbd (diff)
Merge changes from github.
Change: 135698415
Diffstat (limited to 'tensorflow/contrib/quantization')
-rw-r--r--tensorflow/contrib/quantization/tools/graph_to_dot.py2
-rw-r--r--tensorflow/contrib/quantization/tools/quantize_graph.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/contrib/quantization/tools/graph_to_dot.py b/tensorflow/contrib/quantization/tools/graph_to_dot.py
index c1ee4ea9d3..c53f5e7afa 100644
--- a/tensorflow/contrib/quantization/tools/graph_to_dot.py
+++ b/tensorflow/contrib/quantization/tools/graph_to_dot.py
@@ -46,7 +46,7 @@ def main(unused_args):
return -1
graph = graph_pb2.GraphDef()
- with open(FLAGS.graph, "rb") as f:
+ with open(FLAGS.graph, "r") as f:
if FLAGS.input_binary:
graph.ParseFromString(f.read())
else:
diff --git a/tensorflow/contrib/quantization/tools/quantize_graph.py b/tensorflow/contrib/quantization/tools/quantize_graph.py
index d9982a5cb1..3bc71cd29c 100644
--- a/tensorflow/contrib/quantization/tools/quantize_graph.py
+++ b/tensorflow/contrib/quantization/tools/quantize_graph.py
@@ -213,7 +213,7 @@ def quantize_weight_rounded(input_node):
# Currently, the parameter FLAGS.bitdepth is used to compute the
# number of buckets as 1 << FLAGS.bitdepth, meaning the number of
# buckets can only be a power of 2.
- # This could be fixed by intorducing a new parameter, num_buckets,
+ # This could be fixed by introducing a new parameter, num_buckets,
# which would allow for more flexibility in chosing the right model
# size/accuracy tradeoff. But I didn't want to add more parameters
# to this script than absolutely necessary.