Skip to main content

Mojo function

pack_filter_shape

pack_filter_shape(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 transposed convolution filter packing.

Args:

  • 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]): The filter to be packed.
  • num_groups (Int): The number of groups in the convolution.

Returns:

The output shape.

Was this page helpful?