---
title: "convolutionTranspose2D(_:weights:outputShapeTensor:descriptor:name:)"
framework: metalperformanceshadersgraph
role: symbol
role_heading: Instance Method
path: "metalperformanceshadersgraph/mpsgraph/convolutiontranspose2d(_:weights:outputshapetensor:descriptor:name:)"
---

# convolutionTranspose2D(_:weights:outputShapeTensor:descriptor:name:)

Creates a convolution transpose operation and returns the result tensor.

## Declaration

```swift
func convolutionTranspose2D(_ source: MPSGraphTensor, weights: MPSGraphTensor, outputShapeTensor outputShape: MPSGraphTensor, descriptor: MPSGraphConvolution2DOpDescriptor, name: String?) -> MPSGraphTensor
```

## Parameters

- `source`: Input tensor
- `weights`: Weights tensor
- `outputShape`: 1D Int32 or Int64 tensor. shape of the result tensor.
- `descriptor`: Descriptor for the corresponding forward Conv2D operation
- `name`: Name for the operation

## Return Value

Return Value A valid MPSGraphTensor object.
