Expunge direct device index handling from tensor_conversion_dispatch (#14421)
authorEdward Yang <ezyang@fb.com>
Fri, 30 Nov 2018 00:01:44 +0000 (16:01 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 30 Nov 2018 00:04:10 +0000 (16:04 -0800)
commit6fe1867c2362e05ee324350cb72d1a29265f62b7
treed50972407cb589b6b6d4c80b1fcc8570edb46a9c
parent5805ef5a8308c1e56b10c99e3b4d6fc8792d43ee
Expunge direct device index handling from tensor_conversion_dispatch (#14421)

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

Last time I looked this, I bailed because it seemed like there were
a lot of sites to fix.  Well, I need this to work properly for out-of-place
HIPify, so I took another whack at it.  Changes should be pretty self-explanatory.

Reviewed By: gchanan

Differential Revision: D13221302

fbshipit-source-id: ed21e2668a1a629898a47358baf368fe680263a0
aten/src/ATen/core/Type.h
aten/src/ATen/templates/Type.h
torch/csrc/autograd/python_variable_indexing.cpp
torch/csrc/utils/tensor_conversion_dispatch.cpp
torch/csrc/utils/tensor_conversion_dispatch.h
torch/csrc/utils/tensor_new.cpp