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

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

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

# cumprodInPlace

[common]\
fun [cumprodInPlace](cumprodInPlace.md)(self: [Tensor](../Tensor/index.md), dim: [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html), dtype: [DType](../DType/index.md) = DType.UNDEFINED): [Tensor](../Tensor/index.md)

`cumprodInPlace(self: Tensor, dim: Long, dtype: DType = DType.UNDEFINED)`: the `cumprod_` operator. In-place `cumprod`: rewrites `self` with its inclusive prefix products along `dim` and returns it 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.