---
title: deallocate()
framework: accelerate
role: symbol
role_heading: Instance Method
path: accelerate/bnnsndarraydescriptor/deallocate()
---

# deallocate()

Deallocates the memory block previously allocated to this n-dimensional array descriptor.

## Declaration

```swift
func deallocate()
```

## See Also

### Allocating and Deallocating Memory

- [allocate(initializingFrom:shape:batchSize:)](accelerate/bnnsndarraydescriptor/allocate(initializingfrom:shape:batchsize:).md)
- [allocate(randomUniformUsing:range:shape:batchSize:)](accelerate/bnnsndarraydescriptor/allocate(randomuniformusing:range:shape:batchsize:)-2rorb.md)
- [allocate(randomUniformUsing:range:shape:batchSize:)](accelerate/bnnsndarraydescriptor/allocate(randomuniformusing:range:shape:batchsize:)-761hg.md)
- [allocate(randomIn:shape:batchSize:)](accelerate/bnnsndarraydescriptor/allocate(randomin:shape:batchsize:)-1697a.md)
- [allocate(randomIn:shape:batchSize:)](accelerate/bnnsndarraydescriptor/allocate(randomin:shape:batchsize:)-5a2p2.md)
- [allocate(randomIn:using:shape:batchSize:)](accelerate/bnnsndarraydescriptor/allocate(randomin:using:shape:batchsize:)-5kbi8.md)
- [allocate(randomIn:using:shape:batchSize:)](accelerate/bnnsndarraydescriptor/allocate(randomin:using:shape:batchsize:)-3w6ig.md)
- [allocate(repeating:shape:batchSize:)](accelerate/bnnsndarraydescriptor/allocate(repeating:shape:batchsize:).md)
- [allocateUninitialized(scalarType:shape:batchSize:)](accelerate/bnnsndarraydescriptor/allocateuninitialized(scalartype:shape:batchsize:).md)
