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): The sourceIntTuplecontaining known dimension values. - target (
IntTuple): The targetIntTuplethat 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?
Thank you! We'll create more content like this.
Thank you for helping us improve!