[quant][fx] Remove Standalone and CustomModule QuantizeHandler type checks in prepare (#75202)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/75202
Instead of checking the type we use a method in the QuantizeHandler to check if a module
is a standalone or custom module, not user facing
Test Plan:
python test/test_quantization.py TestQuantizeFx
python test/test_quantization.py TestQuantizeFxOps
Imported from OSS
Reviewed By: bdhirsh
Differential Revision: D35379641
fbshipit-source-id: c2f970c7e27f74793fa67f8fd5a16a43525e35aa
(cherry picked from commit 251500f06359c9046dd9067543cc80be24ddee33)