---
title: attentionBiases
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/mlcmultiheadattentionlayer/attentionbiases
---

# attentionBiases

The array of attention biases you use for key and value.

## Declaration

```swift
var attentionBiases: [MLCTensor]? { get }
```

## See Also

### Inspecting Multi-Head Attention Layers

- [descriptor](mlcompute/mlcmultiheadattentionlayer/descriptor.md)
- [weights](mlcompute/mlcmultiheadattentionlayer/weights.md)
- [biases](mlcompute/mlcmultiheadattentionlayer/biases.md)
- [weightsParameters](mlcompute/mlcmultiheadattentionlayer/weightsparameters.md)
- [biasesParameters](mlcompute/mlcmultiheadattentionlayer/biasesparameters.md)
