the change in eager mode quantization will require inheriting https://github.com/pytorch/pytorch/blob/master/torch/nn/quantized/modules/linear.py#L103 24 and also related fusion modules under https://github.com/pytorch/pytorch/tree/master/torch/nn/intrinsic 7 folder, and pass a white_list(https://github.com/pytorch/pytorch/blob/master/torch/quantization/quantize.py#L178 12) extended with the new module. It will require familiarity of the whole eager mode quantization flow.