For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).
Mojo function
conv_transpose_naive
def conv_transpose_naive[dtype: DType](output: TileTensor[dtype, Storage=output.Storage, address_space=output.address_space, linear_idx_type=output.linear_idx_type, element_size=output.element_size], input: TileTensor[dtype, Storage=input.Storage, address_space=input.address_space, linear_idx_type=input.linear_idx_type, element_size=input.element_size], filter: TileTensor[dtype, Storage=filter.Storage, address_space=filter.address_space, linear_idx_type=filter.linear_idx_type, element_size=filter.element_size], stride: IndexList[Int(3)], dilation: IndexList[Int(3)], pad_d: IndexList[Int(2)], pad_h: IndexList[Int(2)], pad_w: IndexList[Int(2)])
Implements the ConvTranspose operator from the MO spec.
Parameters:
- βdtype (
DType): Type of the input, output, and kernel tensors.
Args:
- βoutput (
TileTensor[dtype, Storage=output.Storage, address_space=output.address_space, linear_idx_type=output.linear_idx_type, element_size=output.element_size]): Output data tensor that contains the result of the convolution. - βinput (
TileTensor[dtype, Storage=input.Storage, address_space=input.address_space, linear_idx_type=input.linear_idx_type, element_size=input.element_size]): Input data tensor from previous layer, with size of (N x H x W x C), where N is the batch size, C is the number of channels, and H and W are the height and width. - βfilter (
TileTensor[dtype, Storage=filter.Storage, address_space=filter.address_space, linear_idx_type=filter.linear_idx_type, element_size=filter.element_size]): The weight (kernel) tensor, with size of (kH x kW x M/groups x C), where C is the number of channels, kH and kW are the height and width of the kernel, and M is the number of feature maps. - βstride (
IndexList[Int(3)]): Stride along each spatial axis. - βdilation (
IndexList[Int(3)]): Dilation value along each spatial axis of the filter. - βpad_d (
IndexList[Int(2)]): Padding in depth dimension. - βpad_h (
IndexList[Int(2)]): Padding in height dimension. - βpad_w (
IndexList[Int(2)]): Padding in width dimension.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!