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

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

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

# quantizeInPlace

[common]\
fun [quantizeInPlace](quantizeInPlace.md)(input: [Tensor](../Tensor/index.md), out: [Tensor](../Tensor/index.md), scale: [Tensor](../Tensor/index.md), zeroPoint: [Tensor](../Tensor/index.md)? = null, quantAxis: [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) = -1L, blockSize: [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) = 0): [Tensor](../Tensor/index.md)

`quantizeInPlace(input: Tensor, out: Tensor, scale: Tensor, zeroPoint: Tensor? = null, quantAxis: Long = -1L, blockSize: Long = 0L)`: the `quantize_` operator. In-place sibling taking a PLAIN pre-allocated code buffer + explicit affine params: encode `input` INTO `out` (no allocation) and attach the scheme, so on return `out` is a proper quantized tensor. Parameters as in `quantize` above. Returns `out` under the value surface, `Result<void>` under the `Result` surface; `CLIKART_CHECK` is the mode-stable spelling.