IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /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. /get-started.md).

Mojo function

propagate_unknown

def propagate_unknown(src: IntTuple, target: IntTuple) -> IntTuple

Propagates unknown dimensions from the target IntTuple to the source IntTuple.

This function creates a new IntTuple by combining the source and target IntTuples, preserving unknown dimensions (UNKNOWN_VALUE) from the target while using values from the source for known dimensions.

Args:

  • src (IntTuple): The source IntTuple containing known dimension values.
  • target (IntTuple): The target IntTuple that may contain unknown dimensions (UNKNOWN_VALUE).

Returns:

IntTuple: A new IntTuple with unknown dimensions from target and known dimensions from src.

Was this page helpful?