---
title: "ClikaRT::ops::conv_transpose"
sidebar_label: "conv_transpose"
description: "Rank-polymorphic (1-D/2-D/3-D) transposed (fractionally-strided) convolution (learnable upsampling)."
---

<!-- Generated by tools/doxygen2mdx from Doxygen XML. Do not edit. -->

<span class="api-kind api-kind--function">function</span>

## conv\_transpose() {#conv_transpose}

<div class="api-signature">

[`Tensor`](../Tensor.md) **`conv_transpose`**(<br />
&nbsp;&nbsp;&nbsp;&nbsp;[`Tensor`](../Tensor.md) `input`,<br />
&nbsp;&nbsp;&nbsp;&nbsp;[`Tensor`](../Tensor.md) `weight`,<br />
&nbsp;&nbsp;&nbsp;&nbsp;[`OptionalTensor`](../../index.md#OptionalTensor) `bias`,<br />
&nbsp;&nbsp;&nbsp;&nbsp;[`ClikaRT::Span`](../Span.md)`<const std::int64_t>` `stride`,<br />
&nbsp;&nbsp;&nbsp;&nbsp;[`ClikaRT::Span`](../Span.md)`<const std::int64_t>` `padding`,<br />
&nbsp;&nbsp;&nbsp;&nbsp;[`ClikaRT::Span`](../Span.md)`<const std::int64_t>` `output_padding`,<br />
&nbsp;&nbsp;&nbsp;&nbsp;`int64_t` `groups`,<br />
&nbsp;&nbsp;&nbsp;&nbsp;[`ClikaRT::Span`](../Span.md)`<const std::int64_t>` `dilation`,<br />
&nbsp;&nbsp;&nbsp;&nbsp;[`Activation`](./index.md#Activation) `activation` `=` [`Activation::Identity`](./index.md#Activation)<br />
)

</div>

Rank-polymorphic (1-D/2-D/3-D) transposed (fractionally-strided) convolution (learnable upsampling).

Layout is channels-last; the WEIGHT is the transpose-flip of [`conv`](./conv.md#conv)'s: input-channel-first `[C_in, K.., O/groups]`; `C_in == weight[0]` and `C_out == weight[-1] * groups` (the cuDNN-BackwardData / ONNX convention, NOT conv's OHWI). `padding` is per-side: two entries (lo, hi) per spatial dim. `output_padding` grows only the output's high side.

All geometry spans are explicit here; the `conv_transpose1d/2d/3d` wrappers below carry the per-rank defaults.

**Throws**

- `ClikaRT::Error`: when the channel/group arithmetic or a span length is inconsistent, or the dtype is not served (`code_name()` carries the reason).

**Returns:** channels-last `[N, out-spatial.., C_out]`.

<div class="api-declared">

Declared in `ClikaRT/compute/ops.h`, line 1923

</div>
