replace data with data_ptr (#53097)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/53097
Reviewed By: albanD
Differential Revision: D26972445
Pulled By: rohan-varma
fbshipit-source-id: 04798a3fd55dd297638377513cfc57ff86c8916d