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

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

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

# modInPlace

[common]\
fun [modInPlace](modInPlace.md)(self: [Tensor](../Tensor/index.md), other: [Tensor](../Tensor/index.md), mode: [ModMode](../ModMode/index.md) = ModMode.PYTHON): [Tensor](../Tensor/index.md)

`modInPlace(self: Tensor, other: Tensor, mode: ModMode = ModMode.PYTHON)`: the `mod_` operator. In-place `mod`: writes the remainders through `x`. Writes through `self` and returns it, so calls chain.

[common]\
fun [modInPlace](modInPlace.md)(self: [Tensor](../Tensor/index.md), other: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html), mode: [ModMode](../ModMode/index.md) = ModMode.PYTHON): [Tensor](../Tensor/index.md)

`modInPlace(self: Tensor, other: Double, mode: ModMode = ModMode.PYTHON)`: the number form of `mod_`, `other` as a scalar.