//clika-runtime/io.clika.runtime/Ops/flatten
flatten
[common]
fun flatten(input: Tensor, startDim: Long = 0, endDim: Long = -1L): Tensor
flatten(input: Tensor, startDim: Long = 0L, endDim: Long = -1L): the flatten operator. Collapse the INCLUSIVE dim range [start_dim, end_dim] into one dim; the defaults collapse everything to 1-D. Returns a view sharing storage when the input's stride layout factors into the merged shape (contiguous inputs always do); copies into a fresh dense tensor otherwise.