Update gradcheck.py (#70950)
Summary:
Following https://github.com/pytorch/pytorch/pull/64837#discussion_r779870974
Changed torch.equal to torch.allclose as exact comparision could be flaky
Pull Request resolved: https://github.com/pytorch/pytorch/pull/70950
Reviewed By: albanD
Differential Revision: D33462426
Pulled By: anjali411
fbshipit-source-id: aeaba9d2a98d1d0af04fa2cab8c495c23ec0a9cc