Allow Tensor-likes in torch.autograd.gradcheck (#43877)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/42942
Pull Request resolved: https://github.com/pytorch/pytorch/pull/43877
Reviewed By: zou3519
Differential Revision: D23493257
Pulled By: ezyang
fbshipit-source-id: 6cdaabe17157b484e9491189706ccc15420ac239