jakc4103 / DFQ

PyTorch implementation of Data Free Quantization Through Weight Equalization and Bias Correction.
MIT License
258 stars 45 forks source link

An error during running #26

Closed nsping13 closed 3 years ago

nsping13 commented 3 years ago

Hi, Thanks for sharing! any idea what is the reason for the following error: File "DFQ/PyTransformer/transformers/utils.py", line 177, in getattr return object.getattribute(self, name)
AttributeError: 'Log' object has no attribute 'getRecordTensorOP'

Thanks!

jakc4103 commented 3 years ago

Try the "hotfix" branch of PyTransformer

nsping13 commented 3 years ago

now having: File "/DFQ/utils/layer_transform.py", line 449, in set_quant_minmax quant_module[0].runningmax.fill(2.64) # use (1 - mean)/std as in data preprocess TypeError: 'NoneType' object is not subscriptable

nsping13 commented 3 years ago

It is related to the previous issue, there is some mismatch between QuantNConv2d, QuantMeasure