Dispatch factory functions on Type (#15093)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/15093
Needed for backend extensions.
Reviewed By: ezyang
Differential Revision: D13427897
fbshipit-source-id: d0b34b0072e597ae599bd3bc25356831d7a18d6a