[quant] Enable from_float for quantized Embedding_Bag (#43176)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/43176
Convert floating point nn.EmbeddingBag module to
nn.quantized.dynamic.EmbeddingBag module
Test Plan:
python test/test_quantization.py TestDynamicQuantizedModule.test_embedding_bag_api
python test/test_quantization.py TestPostTrainingDynamic.test_embedding_quantization
Imported from OSS
Reviewed By: vkuzo
Differential Revision: D23200196
fbshipit-source-id: 090f47dbf7aceab9c719cbf282fad20fe3e5a983