Skip to main content

//clika-runtime/io.clika.runtime/TensorSpec/mergeFrom

mergeFrom

[common]
fun mergeFrom(other: TensorSpec): TensorSpec

This spec widened by another observation of the same slot: a dim dynamic on either side stays dynamic, differing extents become dynamic, a rank clash makes every dim dynamic at the larger rank; a dim name is kept where the two agree or one is unnamed; the name and optional are this spec's (the name adopted from other when empty). Fails when the dtypes differ.