Skip to content

Commit

Permalink
Fixed indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
HotPotatoC committed Dec 13, 2019
1 parent 1786971 commit 983a82c
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions tensorflow/python/ops/image_ops_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -1867,6 +1867,13 @@ def rgb_to_grayscale(images, name=None):
last dimension of the output is 1, containing the Grayscale value of the
pixels.
Usage Example:
```
>>> import tensorflow as tf
>>> x = tf.random.normal(shape=(256, 256, 3))
>>> tf.image.rgb_to_grayscale(x)
```
Args:
images: The RGB tensor to convert. The last dimension must have size 3 and
should contain RGB values.
Expand All @@ -1875,13 +1882,6 @@ def rgb_to_grayscale(images, name=None):
Returns:
The converted grayscale image(s).
Usage Example:
```
>>> import tensorflow as tf
>>> x = tf.random.normal(shape=(256, 256, 3))
>>> tf.image.rgb_to_grayscale(x)
```
"""
with ops.name_scope(name, 'rgb_to_grayscale', [images]) as name:
images = ops.convert_to_tensor(images, name='images')
Expand Down Expand Up @@ -2921,20 +2921,20 @@ def rgb_to_yiq(images):
Outputs a tensor of the same shape as the `images` tensor, containing the YIQ
value of the pixels.
The output is only well defined if the value in images are in [0,1].
Usage Example:
```
>>> import tensorflow as tf
>>> x = tf.random.normal(shape=(256, 256, 3))
>>> tf.image.rgb_to_yiq(x)
```
Args:
images: 2-D or higher rank. Image data to convert. Last dimension must be
size 3.
Returns:
images: tensor with the same shape as `images`.
Usage Example:
```
>>> import tensorflow as tf
>>> x = tf.random.normal(shape=(256, 256, 3))
>>> tf.image.rgb_to_yiq(x)
```
"""
images = ops.convert_to_tensor(images, name='images')
Expand Down

0 comments on commit 983a82c

Please sign in to comment.