it seems like torch.abs() doesn't have a cuda implementation, so the previous commit would fail when PairwiseDistance():cuda() was called.