Migrate `dot` from the TH to Aten (CPU) (#40354)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/24692
Pull Request resolved: https://github.com/pytorch/pytorch/pull/40354
Reviewed By: ezyang
Differential Revision: D22214203
Pulled By: ngimel
fbshipit-source-id: 500e60d1c02b3b39db19b518f2af43cd69f2e984