---
title: "init(source:filterSize:)"
framework: metalperformanceshaders
role: symbol
role_heading: Initializer
path: "metalperformanceshaders/mpscnndilatedpoolingmaxnode/init(source:filtersize:)"
---

# init(source:filterSize:)

## Declaration

```swift
init(source sourceNode: MPSNNImageNode, filterSize size: Int)
```

## See Also

### Initializers

- [init(source:filterSize:stride:dilationRate:)](metalperformanceshaders/mpscnndilatedpoolingmaxnode/init(source:filtersize:stride:dilationrate:).md)
- [init(source:kernelWidth:kernelHeight:strideInPixelsX:strideInPixelsY:dilationRateX:dilationRateY:)](metalperformanceshaders/mpscnndilatedpoolingmaxnode/init(source:kernelwidth:kernelheight:strideinpixelsx:strideinpixelsy:dilationratex:dilationratey:).md)
