Skip to main content
Log in

Mojo function

get_num_partitions

get_num_partitions[micro_kernel_height: Int, micro_kernel_f_size: Int](num_threads: Int, conv_shape: ConvShape[rank]) -> Index[4]

Partition the worload in (batch&group, C, F, H) dimensions. HOWO is the combination of HO and WO dimensions. The actual number of tasks are the product of return num_partitions.

Was this page helpful?