//clika-runtime/io.clika.runtime/Ops/repeatInterleave
repeatInterleave
[common]
fun repeatInterleave(input: Tensor, repeats: Tensor, dim: Long? = null, outputSize: Long? = null): Tensor
repeatInterleave(input: Tensor, repeats: Tensor, dim: Long? = null, outputSize: Long? = null): the repeat_interleave operator. Repeat ELEMENTS, not blocks: each element along dim appears repeats times consecutively ([a, b] with repeats 2 ->[a, a, b, b]). repeats is a scalar (uniform count) or a 1-D tensor matching the dim's length (per-element counts, output length = their sum). With dim absent the input is flattened first. output_size is the known result length along the dim; pass it when the caller already has it, so a tensor-valued repeats skips the blocking host-side count. Copies.
[common]
fun repeatInterleave(input: Tensor, repeats: Double, dim: Long? = null, outputSize: Long? = null): Tensor
repeatInterleave(input: Tensor, repeats: Double, dim: Long? = null, outputSize: Long? = null): the number form of repeat_interleave, repeats as a scalar.