Upgrade the deprecated data to data_ptr APIs (#25295)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/25295
As Title says.
Test Plan: CI
Reviewed By: hl475
Differential Revision: D17089457
fbshipit-source-id: b45ca24decd6033e7e207f17540d486df6ef2ddc