Skip to main content

//clika-runtime/io.clika.runtime/Ops/squeezeInPlace

squeezeInPlace

[common]
fun squeezeInPlace(self: Tensor, dim: LongArray = longArrayOf()): Tensor

squeezeInPlace(self: Tensor, dim: LongArray = longArrayOf()): the squeeze_ operator. In-place squeeze: reshapes self's handle in place; same rules and error conditions as squeeze(); the storage is untouched. Returns self under the value surface, Result<void> under the Result surface; CLIKART_CHECK is the mode-stable spelling. Writes through self and returns it, so calls chain.