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_cpu
def conv_transposed_cpu[EpilogueFnType: ConvSimdEpilogueFn, //, filter_packed: Bool, filter_is_cfrs: Bool, has_epilogue_fusion: Bool](output: TileTensor[Engine=output.Engine, linear_idx_type=output.linear_idx_type], input: TileTensor[Engine=input.Engine, linear_idx_type=input.linear_idx_type], filter: TileTensor[Engine=filter.Engine, linear_idx_type=filter.linear_idx_type], stride: IndexList[(input.LayoutType.rank - Int(2))], dilation: IndexList[(input.LayoutType.rank - Int(2))], pad_d: IndexList[Int(2)], pad_h: IndexList[Int(2)], pad_w: IndexList[Int(2)], elementwise_lambda: EpilogueFnType, ctx: Optional[DeviceContextBase[CompilationTarget()]] = None)
Runs a transposed convolution on the CPU using the direct register-tiled kernel.
Packs the filter when needed, builds the convolution shape, and dispatches the tiled computation across the available CPU parallelism, optionally fusing an elementwise epilogue.
Parameters:
- EpilogueFnType (
ConvSimdEpilogueFn): Type ofelementwise_lambda(inferred). - filter_packed (
Bool): Whether the filter is already in packed FRSCf layout. - filter_is_cfrs (
Bool): Whether the filter is in CFRS layout, which is unsupported. - has_epilogue_fusion (
Bool): Whether to fuse an elementwise epilogue into the kernel.
Args:
- output (
TileTensor[Engine=output.Engine, linear_idx_type=output.linear_idx_type]): Output tensor that receives the transposed convolution result. - input (
TileTensor[Engine=input.Engine, linear_idx_type=input.linear_idx_type]): Input tensor in NHWC or NDHWC layout. - filter (
TileTensor[Engine=filter.Engine, linear_idx_type=filter.linear_idx_type]): Filter tensor in RSFC layout, packed or unpacked. - 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. - pad_d (
IndexList[Int(2)]): Padding in the depth dimension. - pad_h (
IndexList[Int(2)]): Padding in the height dimension. - pad_w (
IndexList[Int(2)]): Padding in the width dimension. - elementwise_lambda (
EpilogueFnType): Elementwise epilogue closure applied to each output vector whenhas_epilogue_fusionis set. - ctx (
Optional[DeviceContextBase[CompilationTarget()]]): Optional device context used to query the parallelism level.