pytorch/torch/lib
Gregory Chanan 0947712e5d Move Factory functions from Type to TypeExtendedInterface. (#12025)
Summary:
This makes a few changes wrt Type, with the ultimate goal of removing Type from the public Methods/Functions.  In particular:
1) Removes factory functions from Type, into TypeExtendedInterface.
2) sparse_coo_tensor is now a first class at:: namespace function, with TensorOptions overloads.
3) We move from Type-based sparse_coo_tensor dispatch to function-based.

Note we still require a number of changes to get rid of tType in the public interface, in particular TensorOptions needs to support CUDA vs non-CUDA dispatch.  That is coming in a future patch.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/12025

Reviewed By: ezyang

Differential Revision: D10017205

Pulled By: gchanan

fbshipit-source-id: 00807a37b09ed33f0656aaa165bb925abb026320
2018-09-25 09:40:17 -07:00
..
c10d Fix return temporary as reference in MPI backend (#11947) 2018-09-24 20:17:38 -07:00
libshm Refactor Device to not depend on Backend. (#10478) 2018-08-18 17:39:14 -07:00
libshm_windows Introduce SupervisedPtr, delete THAllocator and THCDeviceAllocator (#9358) 2018-07-15 15:11:18 -07:00
THD Move Factory functions from Type to TypeExtendedInterface. (#12025) 2018-09-25 09:40:17 -07:00