---
title: includeZeroPadToAverage
framework: metalperformanceshadersgraph
role: symbol
role_heading: Instance Property
path: metalperformanceshadersgraph/mpsgraphpooling2dopdescriptor/includezeropadtoaverage
---

# includeZeroPadToAverage

Defines a mode for average pooling, where samples outside the input tensor count as zeroes in the average computation.

## Declaration

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

## Discussion

Discussion Otherwise the result is sum over samples divided by number of samples that didn’t come from padding. Default value: NO.
