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

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

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

# quantizeDequantize

[common]\
fun [quantizeDequantize](quantizeDequantize.md)(input: [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, codeDtype: [DType](../DType/index.md) = DType.UNDEFINED, outDtype: [DType](../DType/index.md) = DType.UNDEFINED, blockSize: [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) = 0): [Tensor](../Tensor/index.md)

`quantizeDequantize(input: Tensor, scale: Tensor, zeroPoint: Tensor? = null, quantAxis: Long = -1L, codeDtype: DType = DType.UNDEFINED, outDtype: DType = DType.UNDEFINED, blockSize: Long = 0L)`: the `quantize_dequantize` operator. Fake-quantize: encode `input` to affine codes and decode straight back (one op, no code tensor materialized), so the output is `input` snapped onto the quantization grid. `scale` / `zero_point` / `quant_axis` / `block_size` declare the scheme exactly as in `quantize`; `code_dtype` is the grid's code dtype (`Undefined` = the zero-point's dtype, else Int8); `out_dtype` picks the float output dtype (`Undefined` = `input`'s own). The quantization-aware inspection/tooling entry.