Skip to content

Commit b058b1c

Browse files
committed
fix test
1 parent ced7e15 commit b058b1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/mnle_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ def test_log_likelihood_over_iid_conditions(
405405
theta_and_condition = torch.cat(
406406
(theta, condition_o[i].repeat(num_thetas, 1)), dim=1
407407
)
408-
x_i = x_o[:, i].reshape(num_xs, 1, -1).repeat(1, num_thetas, 1)
408+
x_i = x_o[i].reshape(num_xs, 1, -1).repeat(1, num_thetas, 1)
409409
ll_single.append(estimator.log_prob(input=x_i, condition=theta_and_condition))
410410
ll_single = torch.stack(ll_single).sum(0) # sum over trials
411411

0 commit comments

Comments
 (0)