diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2016-09-12 16:39:38 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2016-09-12 17:47:56 -0700 |
commit | 7dac853a18fb1b20aa37367f93182a7f84e51651 (patch) | |
tree | a0e35b0b01805e42bdc67bfd662249f0387bf420 /tensorflow/g3doc/api_docs/python/image.md | |
parent | 9be3b6d62ef3e85774b50c2e54edfeaf6f3f05d2 (diff) |
Update generated Python Op docs.
Change: 132941025
Diffstat (limited to 'tensorflow/g3doc/api_docs/python/image.md')
-rw-r--r-- | tensorflow/g3doc/api_docs/python/image.md | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/tensorflow/g3doc/api_docs/python/image.md b/tensorflow/g3doc/api_docs/python/image.md index 3b7c3e65be..a38f3f6f06 100644 --- a/tensorflow/g3doc/api_docs/python/image.md +++ b/tensorflow/g3doc/api_docs/python/image.md @@ -204,17 +204,17 @@ Example: ```python # Decode a JPG image and resize it to 299 by 299 using default method. image = tf.image.decode_jpeg(...) -resized_image = tf.image.resize_images(image, 299, 299) +resized_image = tf.image.resize_images(image, [299, 299]) ``` - - - -### `tf.image.resize_images(images, new_height, new_width, method=0, align_corners=False)` {#resize_images} +### `tf.image.resize_images(images, size, method=0, align_corners=False)` {#resize_images} -Resize `images` to `new_width`, `new_height` using the specified `method`. +Resize `images` to `size` using the specified `method`. Resized images will be distorted if their original aspect ratio is not -the same as `new_width`, `new_height`. To avoid distortions see +the same as `size`. To avoid distortions see [`resize_image_with_crop_or_pad`](#resize_image_with_crop_or_pad). `method` can be one of: @@ -232,8 +232,8 @@ the same as `new_width`, `new_height`. To avoid distortions see * <b>`images`</b>: 4-D Tensor of shape `[batch, height, width, channels]` or 3-D Tensor of shape `[height, width, channels]`. -* <b>`new_height`</b>: integer. -* <b>`new_width`</b>: integer. +* <b>`size`</b>: A 1-D int32 Tensor of 2 elements: `new_height, new_width`. The + new size for the images. * <b>`method`</b>: ResizeMethod. Defaults to `ResizeMethod.BILINEAR`. * <b>`align_corners`</b>: bool. If true, exactly align all 4 corners of the input and output. Defaults to `false`. @@ -243,6 +243,7 @@ the same as `new_width`, `new_height`. To avoid distortions see * <b>`ValueError`</b>: if the shape of `images` is incompatible with the shape arguments to this function +* <b>`ValueError`</b>: if `size` has invalid shape or type. * <b>`ValueError`</b>: if an unsupported resize method is specified. ##### Returns: |