Skip to content

Commit 8975577

Browse files
committed
add xfail for trial embedding tests.
1 parent 578bc7a commit 8975577

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tests/embedding_net_test.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,11 @@ def simulator1d(theta):
401401

402402

403403
@pytest.mark.slow
404+
@pytest.mark.xfail(
405+
raises=ValueError,
406+
reason="Padding with NaNs causes error in new NaN check on x_o, see #1701, #1717",
407+
strict=True,
408+
)
404409
def test_npe_with_with_iid_embedding_varying_num_trials(trial_factor=50):
405410
"""Test inference accuracy with embeddings for varying number of trials.
406411
@@ -472,8 +477,8 @@ def test_npe_with_with_iid_embedding_varying_num_trials(trial_factor=50):
472477
# test inference accuracy and permutation invariance
473478
num_repeats = 2
474479
for _ in range(num_repeats):
475-
trial_permutet_x_o = x_o[:, torch.randperm(x_o.shape[1]), :]
476-
samples = posterior.sample((num_samples,), x=trial_permutet_x_o)
480+
trial_permuted_x_o = x_o[:, torch.randperm(x_o.shape[1]), :]
481+
samples = posterior.sample((num_samples,), x=trial_permuted_x_o)
477482
check_c2st(
478483
samples, reference_samples, alg=f"iid-NPE with {num_trials} trials"
479484
)

0 commit comments

Comments
 (0)