diff options
author | Raghuraman Krishnamoorthi <raghuramank@google.com> | 2018-01-03 19:06:54 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-01-03 19:10:47 -0800 |
commit | 71896cc7e5bd3d1b8b5bb615eac7bebf86fa998c (patch) | |
tree | 4450e1c17cf66618048fb17eee320d9741543b3a /tensorflow/examples | |
parent | 2eef71c3f9a486c42e4876adfef312f817f7cb32 (diff) |
Merge changes from github.
PiperOrigin-RevId: 180746153
Diffstat (limited to 'tensorflow/examples')
-rw-r--r-- | tensorflow/examples/label_image/label_image.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tensorflow/examples/label_image/label_image.py b/tensorflow/examples/label_image/label_image.py index 39d0981337..d62b73384c 100644 --- a/tensorflow/examples/label_image/label_image.py +++ b/tensorflow/examples/label_image/label_image.py @@ -51,7 +51,7 @@ def read_tensor_from_image_file(file_name, input_height=299, input_width=299, image_reader = tf.image.decode_jpeg(file_reader, channels = 3, name='jpeg_reader') float_caster = tf.cast(image_reader, tf.float32) - dims_expander = tf.expand_dims(float_caster, 0); + dims_expander = tf.expand_dims(float_caster, 0) resized = tf.image.resize_bilinear(dims_expander, [input_height, input_width]) normalized = tf.divide(tf.subtract(resized, [input_mean]), [input_std]) sess = tf.Session() @@ -118,8 +118,8 @@ if __name__ == "__main__": input_name = "import/" + input_layer output_name = "import/" + output_layer - input_operation = graph.get_operation_by_name(input_name); - output_operation = graph.get_operation_by_name(output_name); + input_operation = graph.get_operation_by_name(input_name) + output_operation = graph.get_operation_by_name(output_name) with tf.Session(graph=graph) as sess: results = sess.run(output_operation.outputs[0], |