Fix ASAN / potential segfault in quantized Tensor memory allocations.
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/29882
Differential Revision: D18522039
Pulled By: AshkanAliabadi
fbshipit-source-id: 1fdc68491aa2ac176633b9ecc3ee78c9175a97aa