---
title: "BNNSTensorGetAllocationSize(_:)"
framework: accelerate
role: symbol
role_heading: Function
path: "accelerate/bnnstensorgetallocationsize(_:)"
---

# BNNSTensorGetAllocationSize(_:)

Returns the minimum allocation size, in bytes, of the specified tensor.

## Declaration

```swift
func BNNSTensorGetAllocationSize(_ tensor: UnsafePointer<BNNSTensor>) -> Int
```

## Parameters

- `tensor`: The tensor.

## Return Value

Return Value The minimum allocation size, in bytes, of the specified tensor.

## See Also

### Specifying and querying a tensor’s properties

- [BNNSTensor](accelerate/bnnstensor.md)
- [BNNSGraphContextGetTensor(_:_:_:_:_:)](accelerate/bnnsgraphcontextgettensor(_:_:_:_:_:).md)
- [BNNSGraphTensorFillStrides(_:_:_:_:)](accelerate/bnnsgraphtensorfillstrides(_:_:_:_:).md)
