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

# gradientFilters(withSource:)

## Declaration

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