Description
In PyTorch through 2.6.0, when eager is used, nn.PairwiseDistance(p=2) produces incorrect results.
References
github.com/pytorch/pytorch/issues/151198
gist.github.com/shaoyuyoung/65a587a579dfdff887b9b35bb79b9093
github.com/pytorch/pytorch/pull/152993
gist.github.com/shaoyuyoung/4bcefba4004f8271e64b5185c95a248a