[JIT] Revert Freezing shared type PR (#46285)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/45902 by reverting https://github.com/pytorch/pytorch/pull/42457
The test case introduced by https://github.com/pytorch/pytorch/pull/42457 was fixed by https://github.com/pytorch/pytorch/pull/46250, which I'm assuming is the real source of the bug.
In the future it would be good to provide repro's for freezing issues without including a quantization dependency; there was another another issue in freezing (see: https://github.com/pytorch/pytorch/pull/46054) who's root cause was the same quantization issue https://github.com/pytorch/pytorch/pull/46250.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/46285
Reviewed By: bdhirsh
Differential Revision: D24288739
Pulled By: eellison
fbshipit-source-id: b69ee8c713f749cd93d5eba370c3eafed86568bb