Infer device from pointer in from_blob (#19094)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/19094
ghimport-source-id: 8207cf614ba36333af610309b24fdc13441b2837
Differential Revision: D14865925
Pulled By: li-roy
fbshipit-source-id: 16613801f7fe0e829ccab8af081517ea4257db06