You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
since pot.emd2 returns accurate distance, how could the results have gradient when torch tensor passed in? #747
It actually returns sub-gradients because indeed it is not differentiable but similarly to relu that is not differentiable, sub-gradient are quite sufficient for many optimization tasks (but less stable especially if you compute gradients wrt weights)
Activity
rflamary commentedon Aug 4, 2025
It actually returns sub-gradients because indeed it is not differentiable but similarly to relu that is not differentiable, sub-gradient are quite sufficient for many optimization tasks (but less stable especially if you compute gradients wrt weights)