Write out some set_ overloads instead of relying on code binding generation.
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/28595
Test Plan: Imported from OSS
Differential Revision: D18116720
Pulled By: gchanan
fbshipit-source-id: a917e03aeb8d5513ad3882163642b800ae35dabe