---
title: "unsqueezeInPlace"
sidebar_label: "unsqueezeInPlace"
description: "Kotlin binding reference: unsqueezeInPlace."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[Ops](index.md)/[unsqueezeInPlace](unsqueezeInPlace.md)

# unsqueezeInPlace

[common]\
fun [unsqueezeInPlace](unsqueezeInPlace.md)(self: [Tensor](../Tensor/index.md), dim: [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)): [Tensor](../Tensor/index.md)

`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.