---
title: shape
framework: accelerate
role: symbol
role_heading: Instance Property
path: accelerate/bnnstensor/shape
---

# shape

A tuple of unsigned-integer elements that specify the size of the tensor.

## Declaration

```swift
var shape: (Int, Int, Int, Int, Int, Int, Int, Int)
```

## Discussion

Discussion The first rank elements specify the size of each dimension.

## See Also

### Specifying a tensor’s properties

- [data_type](accelerate/bnnstensor/data_type.md)
- [rank](accelerate/bnnstensor/rank.md)
- [stride](accelerate/bnnstensor/stride.md)
- [data](accelerate/bnnstensor/data.md)
- [data_size_in_bytes](accelerate/bnnstensor/data_size_in_bytes.md)
- [name](accelerate/bnnstensor/name.md)
