FX quant: allow duplicate named_modules during fbgemm lowering (#70927)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/70927
Earlier, when replacing deq-ref-quant modules, we get non-duplicate
named modules only. When model contains dupicate names, the lowering fails the
second time.
This PR allows duplicates when getting the named modules.
Test Plan: buck test //caffe2/torch/fb/model_transform/quantization/tests:fx_quant_api_test
Reviewed By: jerryzh168
Differential Revision: D33440028
fbshipit-source-id: f2fabd49a293beb90d7b4bf471610cde6279fd66