PixelShuffleΒΆ

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

Abstract Signature:

PixelShuffle(input: Tensor, upscale_factor: int)

PyTorch

API: torch.pixel_shuffle
Strategy: Direct Mapping

JAX (Core)

API: jax.nn.pixel_shuffle
Strategy: Direct Mapping

NumPy

API: β€”
Strategy: Custom / Partial

Keras

API: tf.nn.depth_to_space
Strategy: Direct Mapping

TensorFlow

API: tf.nn.depth_to_space
Strategy: Direct Mapping

Apple MLX

API: β€”
Strategy: Custom / Partial

Flax NNX

API: jax.nn.pixel_shuffle
Strategy: Direct Mapping

PaxML / Praxis

API: jax.nn.pixel_shuffle
Strategy: Direct Mapping