haq icon indicating copy to clipboard operation
haq copied to clipboard

Linear quantization

Open H-Ginger opened this issue 5 years ago • 1 comments
trafficstars

Can you please point to the part where the linear quantization is used? Thanks. I can't find it in linear quantize environment. self.quantizable_layer_types = [QConv2d, QLinear] might be [nn.Conv2d, nn.Linear]?

H-Ginger avatar Jun 01 '20 09:06 H-Ginger

[QConv2d, QLinear] are linear quantization layers. And you can find the implementation in https://github.com/mit-han-lab/haq/blob/7141586e9ae47c8a50aa8b596ab37682a06b434a/lib/utils/quantize_utils.py#L121

kuan-wang avatar Jun 01 '20 15:06 kuan-wang