[quant][graphmode] Test weight observer for dynamic quant (#39687)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/39687
Run the observer on the weight values and compare it with the calculated attributes in the graph
Test Plan:
python test/test_quantization.py test_dynamic_weight_observer
Imported from OSS
Differential Revision: D21961907
fbshipit-source-id: dde3e629b8514e6c82346915ac35e35cf9c05f6f