removed .data from test_autograd.py (#33886)
Summary:
issue: https://github.com/pytorch/pytorch/issues/33630
Pull Request resolved: https://github.com/pytorch/pytorch/pull/33886
Differential Revision: D20160292
Pulled By: anjali411
fbshipit-source-id: 14a42d8148bd60db2dd8ec39f83f99c061ae19c1