---
title: "init(dataLayout:weightsLayout:)"
framework: metalperformanceshadersgraph
role: symbol
role_heading: Initializer
path: "metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor/init(datalayout:weightslayout:)"
---

# init(dataLayout:weightsLayout:)

Creates a 2D-depthwise convolution descriptor with given properties and default values.

## Declaration

```swift
convenience init?(dataLayout: MPSGraphTensorNamedDataLayout, weightsLayout: MPSGraphTensorNamedDataLayout)
```

## Parameters

- `dataLayout`: See dataLayout property.
- `weightsLayout`: See weightsLayout property.

## Return Value

Return Value The descriptor on autoreleasepool.
