Add export annotations for functions in c10 (#18464)
Summary:
Fixes #18461.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18464
Differential Revision: D14620963
Pulled By: ezyang
fbshipit-source-id: c11f3967de2ac69c7140767c8fe73a85555e9f40