Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
runame committed Sep 21, 2024
1 parent 7422b00 commit 3583070
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_kfac.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ def test_expand_setting_scaling( # noqa: C901
loss_func = loss(reduction="sum").to(dev)

context = (
raises(ValueError, match="eigenvalues")
raises(NotImplementedError, match="eigenvalues")
if correct_eigenvalues and fisher_type == FisherType.FORWARD_ONLY
else nullcontext()
) # EKFAC for FOOF is currently not supported
Expand Down Expand Up @@ -1131,7 +1131,7 @@ def test_forward_only_fisher_type(

# Compute KFAC with `fisher_type=FisherType.FORWARD_ONLY
context = (
raises(ValueError, match="eigenvalues")
raises(NotImplementedError, match="eigenvalues")
if correct_eigenvalues
else nullcontext()
) # EKFAC for FOOF is currently not supported
Expand Down

0 comments on commit 3583070

Please sign in to comment.