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

# weight

## Declaration

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