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

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

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

# divInPlace

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

`divInPlace(self: Tensor, other: Tensor, roundingMode: RoundingMode = RoundingMode.NONE, activation: Activation = Activation.IDENTITY)`: the `div_` operator. In-place `div`: writes the (optionally rounded) quotient through `x`. Writes through `self` and returns it, so calls chain.

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

`divInPlace(self: Tensor, other: Double, roundingMode: RoundingMode = RoundingMode.NONE, activation: Activation = Activation.IDENTITY)`: the number form of `div_`, `other` as a scalar.