Fix math formatting of PairwiseDistance and CosineSimilarity docs and fix math formatting of CTC loss docs.
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/19534
Differential Revision: D15034011
Pulled By: ezyang
fbshipit-source-id: 60b81c970c919508a57c86fb23edc9f64973117c