---
title: "pixelShuffle"
sidebar_label: "pixelShuffle"
description: "Kotlin binding reference: pixelShuffle."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[Ops](index.md)/[pixelShuffle](pixelShuffle.md)

# pixelShuffle

[common]\
fun [pixelShuffle](pixelShuffle.md)(input: [Tensor](../Tensor/index.md), upscaleFactor: [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html), mode: [PixelShuffleMode](../PixelShuffleMode/index.md) = PixelShuffleMode.CRD): [Tensor](../Tensor/index.md)

`pixelShuffle(input: Tensor, upscaleFactor: Long, mode: PixelShuffleMode = PixelShuffleMode.CRD)`: the `pixel_shuffle` operator. Rearranges channels into space (depth-to-space): channels-last `[N, H, W, C]` becomes `[N, H*r, W*r, C/r^2]`.