Fix Python device type property for XLA and MSNPU
authorAlex Şuhan <asuhan@google.com>
Thu, 28 Feb 2019 21:28:17 +0000 (13:28 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 28 Feb 2019 21:36:19 +0000 (13:36 -0800)
commite157a6432fe06e019ebcbea590ed6c4e6363619c
treea86aa4ff9a1927f5ef9552a82672ecd149765a1d
parentc596683309d9f50406d395f2b93b7c12b0e68fee
Fix Python device type property for XLA and MSNPU

Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/17361

Differential Revision: D14243546

Pulled By: soumith

fbshipit-source-id: b7498968f72e3d97de5bf6e5b44c5a59b6913acb
torch/csrc/autograd/python_variable.cpp
torch/csrc/autograd/utils/python_arg_parsing.h
torch/csrc/tensor/python_tensor.cpp
torch/csrc/tensor/python_tensor.h