dgs.models.metric.metric.PairwiseDistanceMetric

class dgs.models.metric.metric.PairwiseDistanceMetric(*args: Any, **kwargs: Any)[source]

Class to compute the pairwise distance. For more details see torch.nn.PairwiseDistance.

__init__(*args, **kwargs)[source]

Methods

forward(input1, input2)

Compute the pairwise distance between the two inputs, where the second dimension has to match.