Don't generate DeviceGuard for CPU wrapping code. (#38806)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/38806
I'm trying to delete the Type wrapper code entirely, but I'm
trying to figure out exactly how many device guards I need to
preserve. For now, delete the guards that are known to be
useless.
Signed-off-by: Edward Z. Yang <ezyang@fb.com>
Test Plan: Imported from OSS
Differential Revision: D21764403
Pulled By: ezyang
fbshipit-source-id: 9c3d18f209339dfe2adbe5866b31b03b55990b74