# tensorflow::ops::Requantize Class Reference

# tensorflow::
ops::
Requantize

`
#include <math_ops.h>
`


Converts the quantized
`
input
`
tensor into a lower-precision
`
output
`
.

## Summary


Converts the quantized
`
input
`
tensor into a lower-precision
`
output
`
, using the output range specified with
`
requested_output_min
`
and
`
requested_output_max
`
.


`
[input_min, input_max]
`
are scalar floats that specify the range for the float interpretation of the
`
input
`
data. For example, if
`
input_min
`
is -1.0f and
`
input_max
`
is 1.0f, and we are dealing with
`
quint16
`
quantized data, then a 0 value in the 16-bit data should be interpreted as -1.0f, and a 65535 means 1.0f.


Args:

- scope: A [Scope](https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object
- input_min: The float value that the minimum quantized input value represents.
- input_max: The float value that the maximum quantized input value represents.
- requested_output_min: The float value that the minimum quantized output value represents.
- requested_output_max: The float value that the maximum quantized output value represents.
- out_type: The type of the output. Should be a lower bit depth than Tinput.

<br />


Returns:

- `
  https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output
  ` output
- `
  https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output
  ` output_min: The requested_output_min value is copied into this output.
- `
  https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output
  ` output_max: The requested_output_max value is copied into this output.

<br />

| ### Constructors and Destructors ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/requantize#classtensorflow_1_1ops_1_1_requantize_1a308b260de4bb034d5561eb8a52310abc (const :: https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope & scope, :: https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input input, :: https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input input_min, :: https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input input_max, :: https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input requested_output_min, :: https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input requested_output_max, DataType out_type) ` ||

| ### Public attributes ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/requantize#classtensorflow_1_1ops_1_1_requantize_1a418db3e46025f9b9e36d77ff8233a408 ` | ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation ` |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/requantize#classtensorflow_1_1ops_1_1_requantize_1a23db07728fcff66ef701c31a42704390 ` | ` :: https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output ` |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/requantize#classtensorflow_1_1ops_1_1_requantize_1af6a7b4ea10c4da08919da8374402de2c ` | ` :: https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output ` |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/requantize#classtensorflow_1_1ops_1_1_requantize_1a4c87262c09c761de0cb078e4c2584d1e ` | ` :: https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output ` |

## Public attributes

### operation

```
Operation operation
```

### output

```
::tensorflow::Output output
```

### output_max

```
::tensorflow::Output output_max
```

### output_min

```
::tensorflow::Output output_min
```

## Public functions

### Requantize

```
 Requantize(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  ::tensorflow::Input input_min,
  ::tensorflow::Input input_max,
  ::tensorflow::Input requested_output_min,
  ::tensorflow::Input requested_output_max,
  DataType out_type
)
```