Skip to content

Conversation

@BenZickel
Copy link
Contributor

Problem

Calculating the euclidean distance in energy_score_empirical is done using torch.cdist which can have low-accuracy in some cases (see pytorch/pytorch#42479).

Solution

Support changing the function used to calculate the euclidean distance in energy_score_empirical.

fritzo
fritzo previously approved these changes Apr 10, 2025
@BenZickel BenZickel requested a review from fritzo April 10, 2025 23:21
@fritzo fritzo merged commit 9174cfe into pyro-ppl:dev Apr 11, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants