Reland Make DispatchKeyExtractor forget about TensorOptions (#36290) (#36562)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/36562
The BackendSelect dispatch key gives us a way to extract backend-
specific dispatch keys from non-Tensor arguments without teaching
the DispatchKeyExtractor about them. Here we finish switching over
to the BackendSelect approach for factory functions and remove
TensorOptions from the set of types DispatchKeyExtractor needs to
consider.
Test Plan: Imported from OSS
Differential Revision: D21013652
Pulled By: bhosmer
fbshipit-source-id: e30512d1c3202149e72b7d7ce15084bbfed63ac7