Class to compute the Softmax distribution of the negative squared Euclidean distance.
softmax_dim (int) – The dimension along which to compute the softmax.
Methods
forward(input1, input2)
forward
First compute the squared Euclidean distance between the two inputs.
NegativeSoftmaxEuclideanSquaredDistance
NegativeSoftmaxEuclideanSquaredDistance.__init__()
dgs.models.metric.metric.NegativeSoftmaxEuclideanDistance.forward
dgs.models.metric.metric.NegativeSoftmaxEuclideanSquaredDistance.forward