Converting from qF.conv2d to F.conv2d

I’m trying to implement quantized conv2d with F.conv2d function to port to embedded device. However, I couldn’t reproduce equal output when composed of F.conv2d. Is there any example to convert quantized conv2d to F.conv2d?

Dear best.

Hi Sungjun,

Unfortunately I couldn’t find any tutorial with F.conv2d specifically, but you should be able to quantize it the same way as any other op. You can follow these tutorials (e.g. fx, eager mode) in general and replace the modules to quantize with F.conv2d. You can also check out this test case for an example of how to quantize a model with functional conv ops specifically.