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 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.

Returns:

  • Output output
  • Output 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

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
)