tf.raw_ops.RequantizationRange
Computes a range that covers the actual values present in a quantized tensor.
tf.raw_ops.RequantizationRange(
input, input_min, input_max, name=None
)
Given a quantized tensor described by (input, input_min, input_max)
, outputs a
range that covers the actual values present in that tensor. This op is typically
used to produce the requested_output_min
and requested_output_max
for
Requantize
.
Args |
input
|
A Tensor . Must be one of the following types: qint8 , quint8 , qint32 , qint16 , quint16 .
|
input_min
|
A Tensor of type float32 .
The float value that the minimum quantized input value represents.
|
input_max
|
A Tensor of type float32 .
The float value that the maximum quantized input value represents.
|
name
|
A name for the operation (optional).
|
Returns |
A tuple of Tensor objects (output_min, output_max).
|
output_min
|
A Tensor of type float32 .
|
output_max
|
A Tensor of type float32 .
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2024-01-23 UTC.
[null,null,["Last updated 2024-01-23 UTC."],[],[]]