Class to compute the pairwise distance. For more details see torch.nn.PairwiseDistance.
torch.nn.PairwiseDistance
Methods
forward(input1, input2)
forward
Compute the pairwise distance between the two inputs, where the second dimension has to match.
PairwiseDistanceMetric
PairwiseDistanceMetric.__init__()
dgs.models.metric.metric.NegativeSoftmaxEuclideanSquaredDistance.forward
dgs.models.metric.metric.PairwiseDistanceMetric.forward