---
title: weight
framework: metalperformanceshaders
role: symbol
role_heading: Instance Property
path: metalperformanceshaders/mpscnnlossdescriptor/weight
---

# weight

## Declaration

```swift
var weight: Float { get set }
```
