Skip to content

Commit

Permalink
SBVM sampler fix (#3261)
Browse files Browse the repository at this point in the history
  • Loading branch information
deoxyribose committed Aug 25, 2023
1 parent 1048a8b commit cc8e545
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyro/distributions/sine_bivariate_von_mises.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def sample(self, sample_shape=torch.Size()):
curr_b0 = b0[missing > 0]

x = (
torch.distributions.Normal(0.0, torch.sqrt(1 + 2 * curr_eig / curr_b0))
torch.distributions.Normal(0.0, torch.rsqrt(1 + 2 * curr_eig / curr_b0))
.sample((missing[missing > 0].min(),))
.view(2, -1, missing[missing > 0].min())
)
Expand Down

0 comments on commit cc8e545

Please sign in to comment.