# tensorplay.nn.functional.pixel_shuffle

Source: https://www.tensorplay.cn/docs/generated/tensorplay.nn.functional.pixel_shuffle.html

# tensorplay.nn.functional.pixel_shuffle

tensorplay.nn.functional.pixel_shuffle(input: TensorBase, upscale_factor: [int](https://docs.python.org/3/library/functions.html#int)) &#x2192; TensorBase[[source]](../_modules/tensorplay/nn/functional.html#pixel_shuffle)

Rearranges elements in a tensor of shape (*, C x r^2, H, W) to a
tensor of shape (*, C, H x r, W x r).

Port of aten::pixel_shuffle: output[n, c, h*r+i, w*r+j] =
input[n, c*r^2 + i*r + j, h, w].
