dgs.models.metric.metric.EuclideanSquareMetric

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

Class to compute the squared Euclidean distance between two matrices.

__init__(*args: Any, **kwargs: Any) None

Methods

forward(input1, input2)

Compute squared Euclidean distance between two matrices with a matching second dimension.