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

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

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

# nanToNumInPlace

[common]\
fun [nanToNumInPlace](nanToNumInPlace.md)(self: [Tensor](../Tensor/index.md), nan: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)? = null, posinf: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)? = null, neginf: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)? = null): [Tensor](../Tensor/index.md)

`nanToNumInPlace(self: Tensor, nan: Double? = null, posinf: Double? = null, neginf: Double? = null)`: the `nan_to_num_` operator. In-place `nan_to_num`: writes the result through `self`; same formula, arguments, and error conditions as `nan_to_num()`. 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.