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

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

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

# pixelUnshuffle

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

`pixelUnshuffle(input: Tensor, downscaleFactor: Long, mode: PixelShuffleMode = PixelShuffleMode.CRD)`: the `pixel_unshuffle` operator. The inverse of `pixel_shuffle` (space-to-depth): channels-last `[N, H, W, C]` becomes `[N, H/r, W/r, C*r^2]`.