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 IntTuple
s,
preserving unknown dimensions (UNKNOWN_VALUE) from the target while using values
from the source for known dimensions.
Args:
- src (
IntTuple[origin]
): The sourceIntTuple
containing known dimension values. - target (
IntTuple[origin]
): The targetIntTuple
that may contain unknown dimensions (UNKNOWN_VALUE).
Returns:
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!