Skip to main content
Log in

Mojo function

propagate_unknown

propagate_unknown(src: IntTuple[origin], target: IntTuple[origin]) -> 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[origin]): The source IntTuple containing known dimension values.
  • target (IntTuple[origin]): The target IntTuple that may contain unknown dimensions (UNKNOWN_VALUE).

Returns:

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