Skip to content

Commit

Permalink
fix: bump numpy version in tests (#252)
Browse files Browse the repository at this point in the history
Signed-off-by: SdgJlbl <[email protected]>
  • Loading branch information
SdgJlbl authored Oct 1, 2024
1 parent ba2eb8f commit 02636a7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions benchmark/camelyon/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ def substrafl_fed_avg(
)

pypi_dependencies = [
"numpy==1.26.4",
"torch==2.3.0",
"scikit-learn==1.5.1",
"numpy==2.1.1",
"torch==2.4.1",
"scikit-learn==1.5.2",
]
if not use_gpu:
pypi_dependencies += ["--extra-index-url https://download.pytorch.org/whl/cpu"]
Expand Down
1 change: 1 addition & 0 deletions changes/252.fixed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bump NumPy and pytorch versions in tests.
2 changes: 1 addition & 1 deletion tests/algorithms/pytorch/test_base_algo.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ def test_gpu(
algo_class, strategy_class, disable_gpu = dummy_gpu
my_algo = algo_class()
algo_deps = Dependency(
pypi_dependencies=["torch==2.2.1", "numpy==1.26.4", "pytest"],
pypi_dependencies=["torch==2.4.1", "numpy==2.2.1", "pytest"],
editable_mode=True,
)

Expand Down
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,8 @@ def aggregation_node(network):
def torch_cpu_dependency():
return Dependency(
pypi_dependencies=[
"torch==2.2.1",
"numpy==1.26.4",
"torch==2.4.1",
"numpy==2.1.1",
"--extra-index-url https://download.pytorch.org/whl/cpu",
],
editable_mode=True,
Expand Down

0 comments on commit 02636a7

Please sign in to comment.