---
title: BNNSShuffleTypePixelShuffleNCHW
framework: accelerate
role: symbol
role_heading: Global Variable
path: accelerate/bnnsshuffletypepixelshufflenchw
---

# BNNSShuffleTypePixelShuffleNCHW

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

## Declaration

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

## Discussion

Discussion Use this shuffle type to rearrange the elements in a tensor of shape (N,C×rxr,H,W) to a tensor of shape (N,C,H×r,W×r), where r is an upscale factor.

## See Also

### Constants

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