• Adam Straw's avatar
    Quantized and Dequantize doc fixes (#1850) · 7e394ac6
    Adam Straw authored
    * fixing some quantize and dequantize doc issues
    
    * Update doc/sphinx/source/ops/dequantize.rst
    
    * Update doc/sphinx/source/ops/dequantize.rst
    
    * Update doc/sphinx/source/ops/dequantize.rst
    
    * Update doc/sphinx/source/ops/quantize.rst
    
    * Update doc/sphinx/source/ops/quantize.rst
    
    * Update doc/sphinx/source/ops/quantize.rst
    
    * change output to hypertext
    
    * style check
    7e394ac6
dequantize.rst 2.68 KB

Dequantize

Dequantize // Maps quantized input to real output

Description

Produces a tensor of element type type and the same shape as input where the value of each coordinate i of output is the corresponding coordinate of input minus offset quantity multiplied by scale. The coordinate j of scale and offset is the coordinate of output projected onto axes.

Inputs

Name Element Type Shape
input Any quantized type Any
scale Same as output input shape projected onto axes
offset Same as input input shape projected onto axes

Attributes

Name Description
type output element type; any real type
axes Axis positions on which scale and offset are specified

Outputs

Name Element Type Shape
output type Same as input

Mathematical Definition

\mathtt{output}_{i,j} = (\mathtt{input}_{i,j} - \mathtt{offset}_{j}) \mathtt{scale}_{j}

C++ Interface