Skip to main content

Mojo function

fold_shape

fold_shape[dtype: DType](input: 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], output_size: IndexList[2], kernel_size: IndexList[2]) -> IndexList[4]

Returns the shape of the output tensor of the fold operation.

Was this page helpful?