Skip to main content

//clika-runtime/io.clika.runtime/Ops/rot90

rot90

[common]
fun rot90(input: Tensor, k: Long = 1, dims: LongArray = longArrayOf(0, 1)): Tensor

rot90(input: Tensor, k: Long = 1L, dims: LongArray = longArrayOf(0, 1)): the rot90 operator. Rotate the plane spanned by dims by k x 90 degrees (k is taken mod 4; odd rotations swap the two dims' extents). Default plane {0, 1}. Copies.