For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).
Mojo function
reorder_padding
def reorder_padding[rank: Int](pad: IntTuple) -> IntTuple
Reorders padding entries into (lower, upper) pairs per dimension.
Parameters:
- rank (
Int): Spatial rank of the convolution (1, 2, or 3), selecting the reordering pattern applied to the flattened padding tuple.
Args:
- pad (
IntTuple): Padding values in the original layout.
Returns:
IntTuple: Flattened padding tuple ordered as per-dimension (lower, upper) pairs.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!