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

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

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

# mulInPlace

[common]\
fun [mulInPlace](mulInPlace.md)(self: [Tensor](../Tensor/index.md), other: [Tensor](../Tensor/index.md), activation: [Activation](../Activation/index.md) = Activation.IDENTITY): [Tensor](../Tensor/index.md)

`mulInPlace(self: Tensor, other: Tensor, activation: Activation = Activation.IDENTITY)`: the `mul_` operator. In-place `mul`: writes through `x`. Writes through `self` and returns it, so calls chain.

[common]\
fun [mulInPlace](mulInPlace.md)(self: [Tensor](../Tensor/index.md), other: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html), activation: [Activation](../Activation/index.md) = Activation.IDENTITY): [Tensor](../Tensor/index.md)

`mulInPlace(self: Tensor, other: Double, activation: Activation = Activation.IDENTITY)`: the number form of `mul_`, `other` as a scalar.