Fix incorrect doc example with centered=False

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
Yong Tang 2020-04-15 15:26:42 +00:00
parent 3fc74213ba
commit 353d22eb43

View File

@ -4063,10 +4063,10 @@ def extract_glimpse(
>>> tf.image.extract_glimpse(x, size=(2, 2), offsets=[[1, 1]], >>> tf.image.extract_glimpse(x, size=(2, 2), offsets=[[1, 1]],
... centered=False, normalized=False) ... centered=False, normalized=False)
<tf.Tensor: shape=(1, 2, 2, 1), dtype=float32, numpy= <tf.Tensor: shape=(1, 2, 2, 1), dtype=float32, numpy=
array([[[[0.], array([[[[4.],
[1.]], [5.]],
[[3.], [[7.],
[4.]]]], dtype=float32)> [8.]]]], dtype=float32)>
Args: Args:
input: A `Tensor` of type `float32`. A 4-D float tensor of shape input: A `Tensor` of type `float32`. A 4-D float tensor of shape