[nn] TripletMarginLoss and PairwiseDistance : no batch dim (#64882)
Summary:
Reference: https://github.com/pytorch/pytorch/issues/60585
Pull Request resolved: https://github.com/pytorch/pytorch/pull/64882
Reviewed By: malfet
Differential Revision: D31055577
Pulled By: jbschlosser
fbshipit-source-id: 2f0a5a08619b672026b48a78bc7d83a6dccba0bf