---
title: weights
framework: coreml
role: symbol
role_heading: Type Property
path: coreml/mlparameterkey/weights
---

# weights

The key you use to access the weights of a layer in a neural network model.

## Declaration

```swift
class var weights: MLParameterKey { get }
```

## Discussion

Discussion The value type for the weights key is an MLMultiArray. You must scope this key with the name of the specific neural network layer whose weights you’d like to access. See scoped(to:). note: You can only override the weights of a model’s updatable layers. Model developers mark these layers as updatable with the Core ML Tools.

## See Also

### Accessing neural network layer parameters

- [biases](coreml/mlparameterkey/biases.md)
