dgs.models.similarity.similarity.SimilarityModule.forward

abstract SimilarityModule.forward(data: State, target: State) torch.Tensor[source]

Compute the similarity between two input tensors. Make sure to compute the softmax if softmax is True.