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

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

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

# squeezeInPlace

[common]\
fun [squeezeInPlace](squeezeInPlace.md)(self: [Tensor](../Tensor/index.md), dim: [LongArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long-array/index.html) = longArrayOf()): [Tensor](../Tensor/index.md)

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