An implementation of Maximum Mean Discrepancy (MMD) as a differentiable loss in PyTorch.
Based on ZongxianLee's popular repository. Same functionality but fixed bugs and simplified the code. Importantly, this implementation does not restrict both compared sets to be of the same size.