Use tensorpipe::Buffer::device() instead of tensorpipe::Buffer::deviceType().
Summary: The `tensorpipe::Buffer::deviceType()` method is going away.
Test Plan: CI
Reviewed By: lw
Differential Revision: D27478436
fbshipit-source-id: 3962257bc6237d1dde7e5f4fddae38abe8384c68