fix overspecializing constants in compilation (#22816)
Summary:
When we specialize the tensor type of constants in compilation it causes all sorts of problems.
Fix for https://github.com/pytorch/pytorch/issues/22809
Pull Request resolved: https://github.com/pytorch/pytorch/pull/22816
Differential Revision: D16384094
Pulled By: eellison
fbshipit-source-id: f33c00d92d87108749d09bf037a6e74c5d9adaa2