IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
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?