IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
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 of elementwise_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 apply elementwise_epilogue after the convolution.

Args:

Was this page helpful?