geomloss icon indicating copy to clipboard operation
geomloss copied to clipboard

ValueError: Maximum allowed size exceeded in degenerate case of Sinkhorn loss

Open myoresh opened this issue 3 years ago • 0 comments

The following code causes the crash - a degenerate case of loss between Dirac distribution and itself:

import torch
from geomloss import SamplesLoss

loss_func = SamplesLoss("sinkhorn")

t1_samples = torch.tensor([[1.0, ], ])
t2_samples = torch.tensor([[1.0, ], ])

loss_value = loss_func(t1_samples, t2_samples)

myoresh avatar Dec 08 '21 09:12 myoresh