Shortcuts

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[source]

Down-sample by pixel unshuffle.

Parameters
  • x (Tensor) – Input tensor.

  • scale (int) – Scale factor.

Returns

Output tensor.

Return type

Tensor

Read the Docs v: latest
Versions
latest
stable
0.x
Downloads
pdf
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.