Remove hacky_wrapper from VariableType and TraceType (#44005)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/44005
Previously, VariableType and TraceType kernels were still written in the legacy way, i.e. they took one TensorOptions argument instead of scattered dtype, layout, device, pin_memory, and they used hacky_wrapper to be callable.
Now with this PR, variable and tracing kernels are written in the new way and no hacky_wrapper is needed for them.
ghstack-source-id: 112825791
Test Plan:
waitforsandcastle
https://www.internalfb.com/intern/fblearner/details/215954270/
Reviewed By: ezyang
Differential Revision: D23466042
fbshipit-source-id: bde730a9e3bb4cb80ad484417be1ebecbdc2d377