---
title: "init(source:kernelWidth:kernelHeight:strideInPixelsX:strideInPixelsY:dilationRateX:dilationRateY:)"
framework: metalperformanceshaders
role: symbol
role_heading: Initializer
path: "metalperformanceshaders/mpscnndilatedpoolingmaxnode/init(source:kernelwidth:kernelheight:strideinpixelsx:strideinpixelsy:dilationratex:dilationratey:)"
---

# init(source:kernelWidth:kernelHeight:strideInPixelsX:strideInPixelsY:dilationRateX:dilationRateY:)

## Declaration

```swift
init(source sourceNode: MPSNNImageNode, kernelWidth: Int, kernelHeight: Int, strideInPixelsX: Int, strideInPixelsY: Int, dilationRateX: Int, dilationRateY: Int)
```

## See Also

### Initializers

- [init(source:filterSize:)](metalperformanceshaders/mpscnndilatedpoolingmaxnode/init(source:filtersize:).md)
- [init(source:filterSize:stride:dilationRate:)](metalperformanceshaders/mpscnndilatedpoolingmaxnode/init(source:filtersize:stride:dilationrate:).md)
