Move 1d tensor checks to TH (#20859)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/20859
ghimport-source-id: 675cea2c31b48bb5e3b4676640021ace783ea3a8
Differential Revision: D15509850
Pulled By: li-roy
fbshipit-source-id: 468b3b1249d58dd8104643d61d263d1f9b0308bf