fix missing-prototypes warnings in torch_cpu (Part 2) (#100147)
This PR fixes more missing-prototypes violations in the torch_cpu source following PR #100053.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/100147
Approved by: https://github.com/zou3519