Don't export enums for CUDA sources on Windows (#45829)
Summary:
Fixes #{issue number}
Pull Request resolved: https://github.com/pytorch/pytorch/pull/45829
Reviewed By: VitalyFedyunin
Differential Revision: D24113130
Pulled By: ezyang
fbshipit-source-id: 8356c837ed3a790efecf8dfcc8fb6ee6f45bd6e2