port atan2 from TH to ATen (#23558)
Summary:
https://github.com/pytorch/pytorch/issues/22799
Pull Request resolved: https://github.com/pytorch/pytorch/pull/23558
Differential Revision: D16591638
Pulled By: ifedan
fbshipit-source-id: d12d4c8229337a22a3278f0c7a8bbc9a86d4c9b7