---
title: "init(type:weights:bias:stride:dilationStride:groupSize:padding:)"
framework: accelerate
role: symbol
role_heading: Initializer
path: "accelerate/bnns/fusedconvolutionparameters/init(type:weights:bias:stride:dilationstride:groupsize:padding:)"
---

# init(type:weights:bias:stride:dilationStride:groupSize:padding:)

Returns a new fused convolution parameters structure.

## Declaration

```swift
init(type: BNNS.ConvolutionType, weights: BNNSNDArrayDescriptor, bias: BNNSNDArrayDescriptor?, stride: (x: Int, y: Int), dilationStride: (x: Int, y: Int), groupSize: Int, padding: BNNS.ConvolutionPadding)
```

## Parameters

- `type`: An enumeration that specifies the convolution type.
- `weights`: The descriptor of the weights.
- `bias`: The descriptor of the bias.
- `stride`: The width and height increments of the input image.
- `dilationStride`: The width and height increments between elements in the input image during convolution.
- `groupSize`: The convolution group size.
- `padding`: The number of zeros that the operation virtually adds to the edges of the input.
