[quant][graph] Fix bug in replaceConvolutionWithConv2d (#37635)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/37635
replaceConvolutionWithConv2d incorrectly assumes that the size of padding is 2. For Conv1d it is 1, in which case we cannot replace with aten::conv2d
Test Plan: Imported from OSS
Differential Revision: D21354930
fbshipit-source-id: a2dbad856666b4bbb2d9015ade8e1704774f20dd