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_miopen
def conv_miopen[conv_rank: Int, input_type: DType, filter_type: DType, output_type: DType, //, filter_is_fcrs: Bool = False](input: TileTensor[input_type, Storage=input.Storage, address_space=input.address_space, linear_idx_type=input.linear_idx_type], filter: TileTensor[filter_type, Storage=filter.Storage, address_space=filter.address_space, linear_idx_type=filter.linear_idx_type], output: TileTensor[output_type, Storage=output.Storage, address_space=output.address_space, linear_idx_type=output.linear_idx_type], stride: IndexList[conv_rank], dilation: IndexList[conv_rank], padding: IndexList[conv_rank], num_groups: Int, ctx: DeviceContext)
Runs a convolution via MIOpen on AMD GPUs, transposing the filter to FRSC physical layout and dispatching to the cached MIOpen forward convolution path.
Parameters:
- βconv_rank (
Int): Number of spatial dimensions in the convolution (1, 2, or 3) (inferred). - βinput_type (
DType): Element type of the input tensor (inferred). - βfilter_type (
DType): Element type of the filter tensor (inferred). - βoutput_type (
DType): Element type of the output tensor (inferred). - βfilter_is_fcrs (
Bool): True when the filter uses FCRS layout, otherwise RSCF (defaults toFalse).
Args:
- βinput (
TileTensor[input_type, Storage=input.Storage, address_space=input.address_space, linear_idx_type=input.linear_idx_type]): Input activation tensor in NHWC or NDHWC layout. - βfilter (
TileTensor[filter_type, Storage=filter.Storage, address_space=filter.address_space, linear_idx_type=filter.linear_idx_type]): Filter weights tensor in RSCF, FCRS, or QRSCF layout. - βoutput (
TileTensor[output_type, Storage=output.Storage, address_space=output.address_space, linear_idx_type=output.linear_idx_type]): Output tensor in NHWC or NDHWC layout. - βstride (
IndexList[conv_rank]): Stride along each spatial dimension. - βdilation (
IndexList[conv_rank]): Dilation factor along each spatial dimension. - βpadding (
IndexList[conv_rank]): Symmetric padding applied to each spatial dimension. - βnum_groups (
Int): Number of convolution groups for grouped convolution. - βctx (
DeviceContext): Device context for kernel launch.