Skip to content

Commit

Permalink
Fix docstring and lower test numerical threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
runame committed Sep 17, 2024
1 parent a2dec74 commit d60c876
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions curvlinops/kfac.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class MetaEnum(EnumMeta):
"""Metaclass for the Enum class for desired behavior of the `in` operator."""

def __contains__(cls, item):
"""Check if an item is a valid member of the Enum."""
try:
cls(item)
except ValueError:
Expand Down
2 changes: 1 addition & 1 deletion test/test_kfac.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ def test_kfac_ef_one_datum(
)
kfac_mat = kfac @ eye(kfac.shape[1])

report_nonclose(ef, kfac_mat)
report_nonclose(ef, kfac_mat, atol=1e-7)


@mark.parametrize("dev", DEVICES, ids=DEVICES_IDS)
Expand Down

0 comments on commit d60c876

Please sign in to comment.