Mojo function
pack_filter_shape
pack_filter_shape[filter_type: DType, input_shape: IntTuple, filter_shape: IntTuple, output_shape: IntTuple, strides: IntTuple, dilations: IntTuple, paddings: IntTuple, num_groups: Int](filter: TileTensor[filter.dtype, filter.LayoutType, filter.origin, address_space=filter.address_space, linear_idx_type=filter.linear_idx_type, element_size=filter.element_size]) -> IndexList[(filter.flat_rank + 1)]
Compute the shape of packed filter. The packed layout is FRSCf. shape_ref should be allocated with size 5 outside this kernel.
Returns:
IndexList: The output shape.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!