Skip to main content

Mojo function

pack_conv_filter_shape

pack_conv_filter_shape[single_thread_blocking_override: Bool](filter: LayoutTensor[dtype, layout, origin, address_space=address_space, element_layout=element_layout, layout_int_type=layout_int_type, linear_idx_type=linear_idx_type, masked=masked, alignment=alignment], num_groups: Int) -> IndexList[(layout.rank() + 1)]

Compute the output shape of convolution filter packing.

Parameters:

  • โ€‹single_thread_blocking_override (Bool): If True, then the operation is run synchronously using a single thread.

Args:

  • โ€‹filter (LayoutTensor): The filter to be packed.
  • โ€‹num_groups (Int): The number of groups in the convolution.

Returns:

IndexList: The output shape.

Was this page helpful?