I’m not entirely sure I understand your use case enough to be certain that it’s what you’re looking for, but I can offer a notebook implementing entropy-regularized Wasserstein distances 639.
Best regards
Thomas