update FakeQuantize spec (#6608)
* update FakeQuantize spec * remove `**Default value**: None` for required attribute
This commit is contained in:
parent
c14edd4134
commit
ca9e495e13
@ -36,29 +36,34 @@ else:
|
||||
* **Description**: specifies rules used for auto-broadcasting of input tensors.
|
||||
* **Range of values**:
|
||||
* *none* - no auto-broadcasting is allowed, all input shapes should match
|
||||
* *numpy* - numpy broadcasting rules, aligned with ONNX Broadcasting. Description is available in <a href="https://github.com/onnx/onnx/blob/master/docs/Broadcasting.md">ONNX docs</a>
|
||||
* *pdpd* - PaddlePaddle-style implicit broadcasting.
|
||||
* *numpy* - numpy broadcasting rules, description is available in [Broadcast Rules For Elementwise Operations](../broadcast_rules.md),
|
||||
* *pdpd* - PaddlePaddle-style implicit broadcasting, description is available in [Broadcast Rules For Elementwise Operations](../broadcast_rules.md).
|
||||
* **Type**: string
|
||||
* **Default value**: "numpy"
|
||||
* **Required**: *no*
|
||||
|
||||
**Inputs**:
|
||||
|
||||
* **1**: `X` - multidimensional input tensor of floating type to be quantized. Required.
|
||||
* **1**: `X` - tensor of type *T_F* and arbitrary shape. **Required.**
|
||||
|
||||
* **2**: `input_low` - minimum limit for input value. The shape must be broadcastable to the shape of *X*. Required.
|
||||
* **2**: `input_low` - tensor of type *T_F* with minimum limit for input value. The shape must be broadcastable to the shape of *X*. **Required.**
|
||||
|
||||
* **3**: `input_high` - maximum limit for input value. Can be the same as `input_low` for binarization. The shape must be broadcastable to the shape of *X*. Required.
|
||||
* **3**: `input_high` - tensor of type *T_F* with maximum limit for input value. Can be the same as `input_low` for binarization. The shape must be broadcastable to the shape of *X*. **Required.**
|
||||
|
||||
* **4**: `output_low` - minimum quantized value. The shape must be broadcastable to the shape of *X*. Required.
|
||||
* **4**: `output_low` - tensor of type *T_F* with minimum quantized value. The shape must be broadcastable to the shape of *X*. **Required.**
|
||||
|
||||
* **5**: `output_high` - maximum quantized value. The shape must be broadcastable to the of *X*. Required.
|
||||
* **5**: `output_high` - tensor of type *T_F* with maximum quantized value. The shape must be broadcastable to the of *X*. **Required.**
|
||||
|
||||
**Outputs**:
|
||||
|
||||
* **1**: `Y` - resulting tensor with shape and type matching the 1st input tensor *X*.
|
||||
* **1**: output tensor of type *T_F* with shape and type matching the 1st input tensor *X*.
|
||||
|
||||
**Types**
|
||||
|
||||
* *T_F*: any supported floating point type.
|
||||
|
||||
**Example**
|
||||
|
||||
```xml
|
||||
<layer … type="FakeQuantize"…>
|
||||
<data levels="2"/>
|
||||
|
Loading…
Reference in New Issue
Block a user