Migrate `fmod` and `fmod_` from TH to ATen (CUDA) (#47323)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/47323
Fixes #24565
Test Plan: Imported from OSS
Reviewed By: zou3519
Differential Revision: D24763086
Pulled By: ejguan
fbshipit-source-id: fa004baea19bbbdbeb44814903db29226805ef0e