tf.image.transpose

View source on GitHub

Transpose image(s) by swapping the height and width dimension.

tf.image.transpose(
    image, name=None
)

Args:

Returns:

If image was 4-D, a 4-D float Tensor of shape [batch, width, height, channels] If image was 3-D, a 3-D float Tensor of shape [width, height, channels]

Raises: