---
title: headCount
framework: ML Compute
role: symbol
role_heading: Instance Property
platforms: [iOS 14.0+, iPadOS 14.0+, Mac Catalyst 14.0+, macOS 11.0+, tvOS 14.0+]
path: mlcompute/mlcmultiheadattentiondescriptor/headcount
---

# headCount

The number of parallel attention heads.

## Declaration

```swift
var headCount: Int { get }
```

## See Also

### Inspecting Multi-Head Attention Descriptors

- [modelDimension](mlcompute/mlcmultiheadattentiondescriptor/modeldimension.md)
- [keyDimension](mlcompute/mlcmultiheadattentiondescriptor/keydimension.md)
- [valueDimension](mlcompute/mlcmultiheadattentiondescriptor/valuedimension.md)
- [dropout](mlcompute/mlcmultiheadattentiondescriptor/dropout.md)
- [hasBiases](mlcompute/mlcmultiheadattentiondescriptor/hasbiases.md)
- [hasAttentionBiases](mlcompute/mlcmultiheadattentiondescriptor/hasattentionbiases.md)
- [addsZeroAttention](mlcompute/mlcmultiheadattentiondescriptor/addszeroattention.md)
