---
title: "gradientFilters(withSources:)"
framework: metalperformanceshaders
role: symbol
role_heading: Instance Method
path: "metalperformanceshaders/mpsnnforwardlossnode/gradientfilters(withsources:)"
---

# gradientFilters(withSources:)

## Declaration

```swift
func gradientFilters(withSources sourceGradient: [MPSNNImageNode]) -> [MPSNNLossGradientNode]
```
