RequantizationRange
tensorflow C++ API
tensorflow::ops::RequantizationRange
Given a quantized tensor described by (input, input_min, input_max), outputs a.
Summary
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.
Arguments:
- 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.
- out_type: The type of the output. Should be a lower bit depth than Tinput.
Output
- Output output_min: The computed min output.
- Output output_max: The computed max output.
Constructor
- QuantizeDownAndShrinkRange(const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input input_min, ::tensorflow::Input input_max, DataType out_type)
Public attributes
- tensorflow::Output output_min.
- tensorflow::Output output_max.
RequantizationRange block
Source link : https://github.com/EXPNUNI/enuSpaceTensorflow/blob/master/enuSpaceTensorflow/tf_math.cpp
Argument:
- Scope scope : A Scope object (A scope is generated automatically each page. A scope is not connected.).
- Input input:connect Input node.
- Input input_min:connect Input node.
- Input input_max:connect Input node.
Return:
- Output output: Output object of RequantizationRange class object.
Result:
- std::vector(Tensor) product_result : Returned object of executed result by calling session.
Using Method
tensorflow -> error: No OpKernel was registered to support Op ‘RequantizationRange’ with these attrs.
Registered devices: [CPU,GPU], Registered kernels:
<no registered kernels>
[[Node: RequantizationRange = RequantizationRange[Tinput=DT_QINT16](Cast, Const_2, Const_4)]].