---
title: "depthwiseConvolution3DDataGradient(_:weights:outputShape:descriptor:name:)"
framework: metalperformanceshadersgraph
role: symbol
role_heading: Instance Method
path: "metalperformanceshadersgraph/mpsgraph/depthwiseconvolution3ddatagradient(_:weights:outputshape:descriptor:name:)"
---

# depthwiseConvolution3DDataGradient(_:weights:outputShape:descriptor:name:)

Creates a 3D depthwise convolution gradient for data operation and returns the result tensor.

## Declaration

```swift
func depthwiseConvolution3DDataGradient(_ incomingGradient: MPSGraphTensor, weights: MPSGraphTensor, outputShape: [NSNumber]?, descriptor: MPSGraphDepthwiseConvolution3DOpDescriptor, name: String?) -> MPSGraphTensor
```

## Parameters

- `incomingGradient`: A 3D input gradient tensor - must be at least rank=4 (CDHW).
- `weights`: The weights tensor, must be rank=4 - axes are interpreted as CDHW.
- `outputShape`: The shape of the οutput tensor (and therefore input tensor of forward pass).
- `descriptor`: The descriptor object that specifies strides, dilation rates and paddings.
- `name`: The name for the operation.

## Return Value

Return Value A valid MPSGraphTensor object
