Test raising TypeError in torch.from_numpy() (#21607)
Summary:
With some additional cleanup.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/21607
Differential Revision: D16046063
Pulled By: li-roy
fbshipit-source-id: 15256a0e94afea39db3cb581c546c2a18a8a7fda