diff options
author | Andrew Selle <aselle@google.com> | 2016-12-16 07:22:59 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2016-12-16 07:43:07 -0800 |
commit | b183b6d0c8ff5ddf0cc48f21fc03341bf56c75f7 (patch) | |
tree | 0756257bf3bc732cb5e7739dcca62e2c8b0b8727 /tensorflow/examples/image_retraining | |
parent | 709ee95325f0814100e5b6378d4405020cf9d8b8 (diff) |
Change remaining tf.mul -> tf.multiply, tf.neg -> tf.negative, and tf.sub -> tf.subtract
tf.negative, tf.multiply, tf.subtract are the new names
Change: 142257628
Diffstat (limited to 'tensorflow/examples/image_retraining')
-rw-r--r-- | tensorflow/examples/image_retraining/retrain.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tensorflow/examples/image_retraining/retrain.py b/tensorflow/examples/image_retraining/retrain.py index ca8c9358b3..0d5ba84c2d 100644 --- a/tensorflow/examples/image_retraining/retrain.py +++ b/tensorflow/examples/image_retraining/retrain.py @@ -637,9 +637,9 @@ def add_input_distortions(flip_left_right, random_crop, random_scale, resize_scale_value = tf.random_uniform(tensor_shape.scalar(), minval=1.0, maxval=resize_scale) - scale_value = tf.mul(margin_scale_value, resize_scale_value) - precrop_width = tf.mul(scale_value, MODEL_INPUT_WIDTH) - precrop_height = tf.mul(scale_value, MODEL_INPUT_HEIGHT) + scale_value = tf.multiply(margin_scale_value, resize_scale_value) + precrop_width = tf.multiply(scale_value, MODEL_INPUT_WIDTH) + precrop_height = tf.multiply(scale_value, MODEL_INPUT_HEIGHT) precrop_shape = tf.stack([precrop_height, precrop_width]) precrop_shape_as_int = tf.cast(precrop_shape, dtype=tf.int32) precropped_image = tf.image.resize_bilinear(decoded_image_4d, @@ -657,7 +657,7 @@ def add_input_distortions(flip_left_right, random_crop, random_scale, brightness_value = tf.random_uniform(tensor_shape.scalar(), minval=brightness_min, maxval=brightness_max) - brightened_image = tf.mul(flipped_image, brightness_value) + brightened_image = tf.multiply(flipped_image, brightness_value) distort_result = tf.expand_dims(brightened_image, 0, name='DistortResult') return jpeg_data, distort_result |