Skip to content

Commit

Permalink
add torchmetrics to pyproject.toml to attempt to pass tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gumityolcu committed May 22, 2024
1 parent f10a1d7 commit f8e2ac2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ dependencies = [
"numpy>=1.19.5",
"torch>=1.13.1",
"captum>=0.6.0",
"torchmetrics>=1.4.0"
]
dynamic = ["version"]

Expand Down
1 change: 1 addition & 0 deletions tests/metrics/test_randomization_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def reproducibility_test():
gen.manual_seed(42)
assert torch.all(torch.rand(5, generator=gen) == torch.Tensor([0.8823, 0.9150, 0.3829, 0.9593, 0.3904]))


@pytest.mark.randomization
@pytest.mark.parametrize(
"model",
Expand Down

0 comments on commit f8e2ac2

Please sign in to comment.