Use tensor's quantized properties directly in pickler (#46267)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/46267
Test Plan: Imported from OSS
Reviewed By: jerryzh168
Differential Revision: D24283008
Pulled By: iseeyuan
fbshipit-source-id: 76c8410d428a5fc487381e65a9f3a789a9f04eb0