#include <math_ops.h>
Converts the quantized input
tensor into a lower-precision output
.
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.
Arguments:
Returns:
Output
outputOutput
output_min: The requested_output_min value is copied into this output.Output
output_max: The requested_output_max value is copied into this output. Constructors and Destructors | |
---|---|
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) |
Public attributes | |
---|---|
operation | |
output | |
output_max | |
output_min |
Operation operation
::tensorflow::Output output
::tensorflow::Output output_max
::tensorflow::Output output_min
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 )
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.4/api_docs/cc/class/tensorflow/ops/requantize