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

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

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

# snakeInPlace

[common]\
fun [snakeInPlace](snakeInPlace.md)(self: [Tensor](../Tensor/index.md), alpha: [Tensor](../Tensor/index.md)? = null, beta: [Tensor](../Tensor/index.md)? = null, eps: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html) = 1.0E-9): [Tensor](../Tensor/index.md)

`snakeInPlace(self: Tensor, alpha: Tensor? = null, beta: Tensor? = null, eps: Double = 1e-9)`: the `snake_` operator. In-place `snake`: writes the result through `self`; same formula, arguments, and error conditions as `snake()`. A view input writes through its base storage. 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.