Give a better error message when people accidentally use unsupported devices (#29409)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/29409
Fixes #27875
Signed-off-by: Edward Z. Yang <ezyang@fb.com>
Test Plan: Imported from OSS
Differential Revision: D18396828
Pulled By: ezyang
fbshipit-source-id: 3f53cbbe620cd3445852273be90ff5744aa7a8cb