Revert D27478436: Use tensorpipe::Buffer::device() instead of tensorpipe::Buffer::deviceType().
Test Plan: revert-hammer
Differential Revision:
D27478436 (https://github.com/pytorch/pytorch/commit/3e185253b65be70162e4bcc8778c7972d5ddf86d)
Original commit changeset: 3962257bc623
fbshipit-source-id: 6619617af2b32445473f21e73bf3841dd7a491b2