IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /docs/manual/basics.md). For the complete Mojo documentation index, see llms.txt.
Skip to main content
Version: 1.0
For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).

propagate_unknown

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.