---
title: "shuffle(_:input:output:filterParameters:)"
framework: accelerate
role: symbol
role_heading: Type Method
path: "accelerate/bnns/shuffle(_:input:output:filterparameters:)"
---

# shuffle(_:input:output:filterParameters:)

Rearranges elements in a tensor according to shuffle type.

## Declaration

```swift
static func shuffle(_ shuffleType: BNNS.ShuffleType, input: BNNSNDArrayDescriptor, output: BNNSNDArrayDescriptor, filterParameters: BNNSFilterParameters? = nil) throws
```

## Parameters

- `shuffleType`: The shuffle operation that the function performs.
- `input`: The input descriptor.
- `output`: The output descriptor.
- `filterParameters`: The runtime filter parameters.

## See Also

### Related Documentation

- [BNNSShuffle(_:_:_:_:)](accelerate/bnnsshuffle(_:_:_:_:).md)

### Utility functions

- [copy(_:to:filterParameters:)](accelerate/bnns/copy(_:to:filterparameters:).md)
- [transpose(input:output:firstTransposeAxis:secondTransposeAxis:filterParameters:)](accelerate/bnns/transpose(input:output:firsttransposeaxis:secondtransposeaxis:filterparameters:).md)
- [BNNSCopy(_:_:_:)](accelerate/bnnscopy(_:_:_:).md)
- [BNNSTranspose(_:_:_:_:_:)](accelerate/bnnstranspose(_:_:_:_:_:).md)
- [BNNSGetPointer(_:_:)](accelerate/bnnsgetpointer(_:_:).md)
- [BNNSPointerSpecifier](accelerate/bnnspointerspecifier.md)
- [BNNS.GramLayer](accelerate/bnns/gramlayer.md)
- [BNNSLayerParametersGram](accelerate/bnnslayerparametersgram.md)
- [BNNSFilterCreateLayerGram(_:_:)](accelerate/bnnsfiltercreatelayergram(_:_:).md)
- [clip(to:input:output:)](accelerate/bnns/clip(to:input:output:).md)
- [clipByNorm(threshold:input:output:axes:)](accelerate/bnns/clipbynorm(threshold:input:output:axes:).md)
- [clipByGlobalNorm(threshold:inputs:outputs:globalNorm:)](accelerate/bnns/clipbyglobalnorm(threshold:inputs:outputs:globalnorm:).md)
- [BNNSClipByValue(_:_:_:_:)](accelerate/bnnsclipbyvalue(_:_:_:_:).md)
- [BNNSClipByNorm(_:_:_:_:)](accelerate/bnnsclipbynorm(_:_:_:_:).md)
- [BNNSClipByGlobalNorm(_:_:_:_:_:)](accelerate/bnnsclipbyglobalnorm(_:_:_:_:_:).md)
