Class to compute the Euclidean distance between two matrices.
Methods
Compute Euclidean distance between two matrices with a matching second dimension.
input1 – tensor of shape [a x E]
[a x E]
input2 – tensor of shape [b x E]
[b x E]
tensor of shape [a x b] containing the distances.
[a x b]
EuclideanDistanceMetric
EuclideanDistanceMetric.__init__()
EuclideanDistanceMetric.forward()
dgs.models.metric.metric.CosineSimilarityMetric
dgs.models.metric.metric.EuclideanSquareMetric