---
title: addsZeroAttention
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/addszeroattention
---

# addsZeroAttention

A Boolean that specifies whether you add a row of zeros to projected key and value.

## Declaration

```swift
var addsZeroAttention: Bool { get }
```

## See Also

### Inspecting Multi-Head Attention Descriptors

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