mmagic.models.archs.downsample¶ Module Contents¶ Functions¶ pixel_unshuffle(→ torch.Tensor) Down-sample by pixel unshuffle. mmagic.models.archs.downsample.pixel_unshuffle(x: torch.Tensor, scale: int) → torch.Tensor[源代码]¶ Down-sample by pixel unshuffle. 参数 x (Tensor) – Input tensor. scale (int) – Scale factor. 返回 Output tensor. 返回类型 Tensor