---
title: weightsParameters
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/weightsparameters
---

# weightsParameters

The array of weights tensor parameters you use for optimizer updates.

## Declaration

```swift
var weightsParameters: [MLCTensorParameter] { get }
```

## See Also

### Inspecting Multi-Head Attention Layers

- [descriptor](mlcompute/mlcmultiheadattentionlayer/descriptor.md)
- [weights](mlcompute/mlcmultiheadattentionlayer/weights.md)
- [biases](mlcompute/mlcmultiheadattentionlayer/biases.md)
- [attentionBiases](mlcompute/mlcmultiheadattentionlayer/attentionbiases.md)
- [biasesParameters](mlcompute/mlcmultiheadattentionlayer/biasesparameters.md)
