Implements divmod function (#20979)
Summary:
This PR refer to issue #18627
Pull Request resolved: https://github.com/pytorch/pytorch/pull/20979
Differential Revision: D15743929
Pulled By: wanchaol
fbshipit-source-id: 967fc3fd519501e427176e10b112c8be1390540b