Implementation of batched Sinkhorn iterations for entropy-regularized Wasserstein loss
arXiv:1907.01729
Abstract
In this report, we review the calculation of entropy-regularised Wasserstein loss introduced by Cuturi and document a practical implementation in PyTorch. Code is available at https://github.com/t-vi/pytorch-tvmisc/blob/master/wasserstein-distance/Pytorch_Wasserstein.ipynb