Split LegacyDeviceTypeInit from LegacyTypeDispatch. (#14723)
authorGregory Chanan <gchanan@fb.com>
Wed, 5 Dec 2018 01:48:25 +0000 (17:48 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 5 Dec 2018 01:51:37 +0000 (17:51 -0800)
commit86b4dd8bb255913ce865f9e999a9dfc2f86f0a13
tree8d32adf92c0b63716e7c777c1379e627b70c9d21
parentf6f24cf0f44150ee3a68aacc28fdf6a66be1a823
Split LegacyDeviceTypeInit from LegacyTypeDispatch. (#14723)

Summary:
The goal here is to have LegacyTHDispatch call into this as well, so LegacyTypeDispatch and LegacyTHDispatch don't have cross dependencies.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/14723

Reviewed By: ezyang

Differential Revision: D13314017

Pulled By: gchanan

fbshipit-source-id: 8761cb4af2b2269d2e755203e073bfdba535b8c0
aten/src/ATen/Context.cpp
aten/src/ATen/core/LegacyDeviceTypeInit.cpp [new file with mode: 0644]
aten/src/ATen/core/LegacyDeviceTypeInit.h [new file with mode: 0644]
aten/src/ATen/core/LegacyTypeDispatch.cpp
aten/src/ATen/core/LegacyTypeDispatch.h