---
title: BNNSShuffleTypePixelUnshuffleNCHW
framework: accelerate
role: symbol
role_heading: Global Variable
path: accelerate/bnnsshuffletypepixelunshufflenchw
---

# BNNSShuffleTypePixelUnshuffleNCHW

The pixel unshuffle for the NCHW (batch, channels, height, width) format, equivalent to space-to-depth in Column Row Depth (CRD) mode.

## Declaration

```swift
var BNNSShuffleTypePixelUnshuffleNCHW: BNNSShuffleType { get }
```

## Discussion

Discussion Use this shuffle type to reverse the pixel shuffle operation by rearranging elements in a tensor of shape (N,C,H×r,W×r) to a tensor of shape (N,C×rxr,H,W), where r is a downscale factor

## See Also

### Constants

- [init(_:)](accelerate/bnnsshuffletype/init(_:).md)
- [init(rawValue:)](accelerate/bnnsshuffletype/init(rawvalue:).md)
- [rawValue](accelerate/bnnsshuffletype/rawvalue.md)
- [BNNSShuffleTypePixelShuffleNCHW](accelerate/bnnsshuffletypepixelshufflenchw.md)
- [BNNSShuffleTypeDepthToSpaceNCHW](accelerate/bnnsshuffletypedepthtospacenchw.md)
- [BNNSShuffleTypeSpaceToDepthNCHW](accelerate/bnnsshuffletypespacetodepthnchw.md)
