<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MetalPerformanceShadersGraph",
  "identifier" : "/documentation/MetalPerformanceShadersGraph/MPSGraphPooling2DOpDescriptor/includeZeroPadToAverage",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Metal Performance Shaders Graph"
    ],
    "preciseIdentifier" : "c:objc(cs)MPSGraphPooling2DOpDescriptor(py)includeZeroPadToAverage"
  },
  "title" : "includeZeroPadToAverage"
}
-->

# includeZeroPadToAverage

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

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

## Discussion

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)