<!--
{
  "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/BNNSLayerParametersConvolution",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@SA@BNNSLayerParametersConvolution"
  },
  "title" : "BNNSLayerParametersConvolution"
}
-->

# BNNSLayerParametersConvolution

A structure that contains the parameters of a convolution layer.

```
struct BNNSLayerParametersConvolution
```

## Topics

### Initializers

[`init(i_desc:w_desc:o_desc:bias:activation:x_stride:y_stride:x_dilation_stride:y_dilation_stride:x_padding:y_padding:groups:pad:)`](/documentation/Accelerate/BNNSLayerParametersConvolution/init(i_desc:w_desc:o_desc:bias:activation:x_stride:y_stride:x_dilation_stride:y_dilation_stride:x_padding:y_padding:groups:pad:))

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

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

Returns a new convolution layer parameters structure.

### Instance Properties

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

The descriptor of the input.

[`w_desc`](/documentation/Accelerate/BNNSLayerParametersConvolution/w_desc)

The descriptor of the weights.

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

The descriptor of the output.

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

The bias descriptor.

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

The activation function that the layer applies to the output.

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

The width increment of the input image.

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

The height increment of the input image.

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

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

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

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

[`x_padding`](/documentation/Accelerate/BNNSLayerParametersConvolution/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/BNNSLayerParametersConvolution/y_padding)

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

[`groups`](/documentation/Accelerate/BNNSLayerParametersConvolution/groups)

Convolution group size.

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

Padding which is asymmetric and ignored if the width or height padding values 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)