<!--
{
  "availability" : [
    "iOS: 14.0.0 - 18.0.0",
    "iPadOS: 14.0.0 - 18.0.0",
    "macCatalyst: 14.0.0 - 18.0.0",
    "macOS: 11.0.0 - 15.0.0",
    "tvOS: 14.0.0 - 18.0.0",
    "visionOS: 1.0.0 - 2.0.0",
    "watchOS: 7.0.0 - 11.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/BNNSLayerParametersPooling",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@SA@BNNSLayerParametersPooling"
  },
  "title" : "BNNSLayerParametersPooling"
}
-->

# BNNSLayerParametersPooling

A structure that contains the parameters of a pooling layer.

```
struct BNNSLayerParametersPooling
```

## Topics

### Initializers

[`init(i_desc:o_desc:bias:activation:pooling_function:k_width:k_height:x_stride:y_stride:x_dilation_stride:y_dilation_stride:x_padding:y_padding:pad:)`](/documentation/Accelerate/BNNSLayerParametersPooling/init(i_desc:o_desc:bias:activation:pooling_function:k_width:k_height:x_stride:y_stride:x_dilation_stride:y_dilation_stride:x_padding:y_padding:pad:))

Returns a new pooling layer parameters structure from the specified parameters.

[`init()`](/documentation/Accelerate/BNNSLayerParametersPooling/init())

Returns a new pooling layer parameters structure.

### Instance Properties

[`i_desc`](/documentation/Accelerate/BNNSLayerParametersPooling/i_desc)

The descriptor of the input.

[`o_desc`](/documentation/Accelerate/BNNSLayerParametersPooling/o_desc)

The descriptor of the output.

[`bias`](/documentation/Accelerate/BNNSLayerParametersPooling/bias)

The descriptor of the bias.

[`activation`](/documentation/Accelerate/BNNSLayerParametersPooling/activation)

The activation function that the layer applies to the output.

[`pooling_function`](/documentation/Accelerate/BNNSLayerParametersPooling/pooling_function)

The variable that specifies the pooling function.

[`k_width`](/documentation/Accelerate/BNNSLayerParametersPooling/k_width)

The width of the kernel.

[`k_height`](/documentation/Accelerate/BNNSLayerParametersPooling/k_height)

The height of the kernel.

[`x_stride`](/documentation/Accelerate/BNNSLayerParametersPooling/x_stride)

The width increment of the input image.

[`y_stride`](/documentation/Accelerate/BNNSLayerParametersPooling/y_stride)

The height increment of the input image.

[`x_dilation_stride`](/documentation/Accelerate/BNNSLayerParametersPooling/x_dilation_stride)

The width increment between elements in the input image during convolution.

[`y_dilation_stride`](/documentation/Accelerate/BNNSLayerParametersPooling/y_dilation_stride)

The height increment between elements in the input image during convolution.

[`x_padding`](/documentation/Accelerate/BNNSLayerParametersPooling/x_padding)

The width padding, which is the number of virtual zeros added to the left and right of each channel.

[`y_padding`](/documentation/Accelerate/BNNSLayerParametersPooling/y_padding)

The height padding, which is the number of virtual zeros added to the top and bottom of each channel.

[`pad`](/documentation/Accelerate/BNNSLayerParametersPooling/pad)

Asymmetric padding, ignored if `x_padding` or `y_padding` are greater than zero.



---

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)