Skip to content

Commit

Permalink
fix unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
yghstill committed Apr 2, 2022
1 parent f79f4f9 commit da5ddf7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/paddle/fluid/contrib/slim/quantization/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,10 +365,10 @@ def dequant_tensor(x, scale, quant_axis=0, weight_bits=8):
return x


def bias_correction_w(self, x, x_quant, scale_v, quant_axis, weight_bits=8):
def bias_correction_w(x, x_quant, scale_v, quant_axis, weight_bits=8):
'''
Bias correction for weight
'''
Bias correction for weight
'''
eps = 1e-8
bnt = (1 << (weight_bits - 1)) - 1
x_dequant = x_quant.copy()
Expand Down

0 comments on commit da5ddf7

Please sign in to comment.