Apply clang-tidy fixes to api/csrc/api/include/torch/nn (#91766)
Split off from #91559
Add move operations to missing shims / helper methods in torch/nn/functional
Pull Request resolved: https://github.com/pytorch/pytorch/pull/91766
Approved by: https://github.com/soumith