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
get_partition
def get_partition(task_id: Int, num_partitions: IndexList[Int(4)], conv_shape: ConvShape, micro_kernel_height: Int, micro_kernel_f_size: Int) -> ConvPartition
Computes the partition of the transposed convolution workload assigned to a single task.
Args:
- βtask_id (
Int): Identifier of the task to compute the partition for. - βnum_partitions (
IndexList[Int(4)]): Number of partitions along each dimension. - βconv_shape (
ConvShape): Shape descriptor of the transposed convolution. - βmicro_kernel_height (
Int): Height of the micro kernel in the output spatial dimension. - βmicro_kernel_f_size (
Int): Size of the micro kernel along the output channel dimension.
Returns:
ConvPartition: The partition describing the offset and size of the work assigned to the task.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!