TorchScript add check if quantized
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/32890
Test Plan: Imported from OSS
Differential Revision: D19673463
Pulled By: z-a-f
fbshipit-source-id: 453ff662810845fcaeb8e6d5919afa8e2d395768