pixel_unshuffle

dragon.vm.torch.nn.functional.pixel_unshuffle(
  input,
  downscale_factor,
  inplace=False
)[source]

Rearrange pixels of input into depth elements.

Parameters:
  • input (dragon.vm.torch.Tensor) – The input tensor.
  • downscale_factor (int) – The factor to downscale pixels.
  • inplace (bool, optional, default=False) – Whether to do the operation in-place.
Returns:

dragon.vm.torch.Tensor – The output tensor.