For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Mojo function
conv_transposed_gpu
def conv_transposed_gpu[EpilogueFnType: ConvSimdEpilogueFn, //, input_type: DType, filter_type: DType, output_type: DType, has_epilogue_fusion: Bool](output: TileTensor[output_type, Engine=output.Engine, linear_idx_type=output.linear_idx_type], input: TileTensor[input_type, Engine=input.Engine, linear_idx_type=input.linear_idx_type], filter: TileTensor[filter_type, Engine=filter.Engine, linear_idx_type=filter.linear_idx_type], stride: IndexList[(input.LayoutType.rank - Int(2))], dilation: IndexList[(input.LayoutType.rank - Int(2))], padding: IndexList[(input.LayoutType.rank - Int(2))], elementwise_epilogue: EpilogueFnType, ctx: DeviceContextBase)
Runs a transposed convolution on the GPU via the cuDNN backward-data path.
Delegates the transposed convolution to cuDNN and, when an elementwise epilogue is provided, applies it as a separate elementwise pass over a temporary buffer.
Parameters:
- EpilogueFnType (
ConvSimdEpilogueFn): Type ofelementwise_epilogue(inferred). - input_type (
DType): Element type of the input tensor. - filter_type (
DType): Element type of the filter tensor. - output_type (
DType): Element type of the output tensor. - has_epilogue_fusion (
Bool): Whether to applyelementwise_epilogueafter the convolution.
Args:
- output (
TileTensor[output_type, Engine=output.Engine, linear_idx_type=output.linear_idx_type]): Output tensor that receives the transposed convolution result. - input (
TileTensor[input_type, Engine=input.Engine, linear_idx_type=input.linear_idx_type]): Input tensor in NHWC layout. - filter (
TileTensor[filter_type, Engine=filter.Engine, linear_idx_type=filter.linear_idx_type]): Filter tensor in RSFC layout. - stride (
IndexList[(input.LayoutType.rank - Int(2))]): Stride along each spatial axis. - dilation (
IndexList[(input.LayoutType.rank - Int(2))]): Dilation value along each spatial axis of the filter. - padding (
IndexList[(input.LayoutType.rank - Int(2))]): Padding along each spatial axis. - elementwise_epilogue (
EpilogueFnType): Elementwise epilogue closure applied after the convolution whenhas_epilogue_fusionis set. - ctx (
DeviceContextBase): Device context used to access the cuDNN handle and device buffers.