|
Algorithm 1 The forward-propagation algorithm of quantization sub-layer for input features |
|
Input: |
Values of input features over a mini-batch: ; |
|
|
Boundary values to be estimated: ,
|
|
Output: |
|
|
Step1.
|
, //Real Boundary values |
|
Step2.
|
, |
|
|
//Moving Boundary values |
|
Step3.
|
//Scaling factor |
|
Step4.
|
//Quantization |