<!--
{
  "availability" : [
    "iOS: 14.0.0 - 17.0.0",
    "iPadOS: 14.0.0 - 17.0.0",
    "macCatalyst: 14.0.0 - 17.0.0",
    "macOS: 11.0.0 - 14.0.0",
    "tvOS: 14.0.0 - 17.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "MLCompute",
  "identifier" : "/documentation/MLCompute/MLCConvolutionDescriptor/init(type:kernelSizes:inputFeatureChannelCount:outputFeatureChannelCount:groupCount:strides:dilationRates:paddingPolicy:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "ML Compute",
      "MLCompute"
    ],
    "preciseIdentifier" : "s:So24MLCConvolutionDescriptorC9MLComputeE4type11kernelSizes24inputFeatureChannelCount06outputhiJ005groupJ07strides13dilationRates13paddingPolicyABSo0A4TypeV_Si6height_Si5widthtS4i1y_Si1xtSiAP_SiAQtAC010MLCPaddingQ0Otcfc"
  },
  "title" : "init(type:kernelSizes:inputFeatureChannelCount:outputFeatureChannelCount:groupCount:strides:dilationRates:paddingPolicy:)"
}
-->

# init(type:kernelSizes:inputFeatureChannelCount:outputFeatureChannelCount:groupCount:strides:dilationRates:paddingPolicy:)

Creates a descriptor for the type, sizes, number of feature channels, group count, strides, dilation rates, and padding policy you specify.

```
convenience init(type: MLCConvolutionType = .standard, kernelSizes: (height: Int, width: Int), inputFeatureChannelCount: Int, outputFeatureChannelCount: Int, groupCount: Int = 1, strides: (y: Int, x: Int) = (1, 1), dilationRates: (y: Int, x: Int) = (1, 1), paddingPolicy: MLCPaddingPolicy = .same)
```

## Parameters

`type`

The convolution type.

`kernelSizes`

A tuple that contains the kernel sizes for y and x.

`inputFeatureChannelCount`

The number of feature channels in the input tensor.

`outputFeatureChannelCount`

The number of feature channels in the output tensor.

`groupCount`

The number of groups.

`strides`

A tuple that contains the kernel strides for y and x.

`dilationRates`

A tuple that contains the dilation rates for y and x.

`paddingPolicy`

The padding policy.

---

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)