Skip to main content

//clika-runtime/io.clika.runtime/Ops/unsqueezeInPlace

unsqueezeInPlace

[common]
fun unsqueezeInPlace(self: Tensor, dim: Long): Tensor

unsqueezeInPlace(self: Tensor, dim: Long): the unsqueeze_ operator. In-place unsqueeze: reshapes self's handle in place; same rules and error conditions as unsqueeze(); 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.