---
title: accumulateWeightGradients
framework: metalperformanceshaders
role: symbol
role_heading: Instance Property
path: metalperformanceshaders/mpsrnnmatrixtraininglayer/accumulateweightgradients
---

# accumulateWeightGradients

## Declaration

```swift
var accumulateWeightGradients: Bool { get set }
```
