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

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

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

# preluInPlace

[common]\
fun [preluInPlace](preluInPlace.md)(self: [Tensor](../Tensor/index.md), weight: [Tensor](../Tensor/index.md)? = null): [Tensor](../Tensor/index.md)

`preluInPlace(self: Tensor, weight: Tensor? = null)`: the `prelu_` operator. In-place `prelu`: writes the result through `self`; same formula, arguments, and error conditions as `prelu()`. 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.