<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/BNNSGraph/Builder/Tensor/convTranspose(weight:strides:padding:outputPaddingValues:dilations:groupCount:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:10Accelerate9BNNSGraphO7BuilderV6TensorV13convTranspose6weight7strides7padding19outputPaddingValues9dilations10groupCountAGy__xGqd___SaySiGAE011ConvolutionK0OAPSgASSit7ElementQyd__RszAE18OperationParameterRd__lF"
  },
  "title" : "convTranspose(weight:strides:padding:outputPaddingValues:dilations:groupCount:)"
}
-->

# convTranspose(weight:strides:padding:outputPaddingValues:dilations:groupCount:)

Adds a transposed convolution operation to the current graph.

```
func convTranspose(weight: some BNNSGraph.Builder.OperationParameter<T>, strides: [Int], padding: BNNSGraph.Builder.ConvolutionPadding, outputPaddingValues: [Int]? = nil, dilations: [Int]? = nil, groupCount: Int = 1) -> BNNSGraph.Builder.Tensor<T>
```

## Parameters

`weight`

The convolution weights.

`strides`

An array that contains the kernel stride for each spatial dimension.

`padding`

An enumeration that specifies that the operation computes the padding from
the input and output shapes. If you specify `custom`, pass twice the number of spatial dimensions.

`dilations`

An array that contains the kernel dilation for each spatial dimension.

`groupCount`

The number of convolution groups. Pass `1` to specify non-grouped
convolution.

## Discussion

This operation assumes the source tensor is in  `(N, C, spatial dimensions...)` format,
where the number of spatial dimensions is either `1` or `2`.

---

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)