Revert D30513613: Removing tensor.data usage in utils with tensor set_ method
Test Plan: revert-hammer
Differential Revision:
D30513613 (https://github.com/pytorch/pytorch/commit/d08a36f831cbcb4516fc1b68e3e3deff8ab45aba)
Original commit changeset: 402efb9c30fa
fbshipit-source-id: 911c66a9852de77dc5274b5fb373258c0c97739a