pixel_shuffle

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

Rearrange depth elements of input into pixels.

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

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