[quant][fix] Update quantization c++ tests to not run if CPU_STATIC_DISPATCH is specified (#62197)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/62197
For build configs with ATEN_CPU_STATIC_DISPATCH defined, quantization tests will fail since they
require QuantizedCPU dispatch to be enabled.
This will fix some internal test failures like https://www.internalfb.com/intern/test/844424941811803?ref_report_id=0 which are run under the `caffe2_aten_cpu_inference` project
Test Plan:
buck test mode/dev //caffe2/aten:quantized_test
Imported from OSS
Reviewed By: bdhirsh
Differential Revision: D29912742
fbshipit-source-id: b117eb9f4afb51e0d0dd52fbe9d5c5be7dfafe85