Skip to content

Commit feff269

Browse files
committed
fix torch-numpy dependency in github workflows
1 parent b73bf6f commit feff269

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
run: |
3232
python -m pip install --upgrade pip
3333
pip install setuptools wheel
34+
if [ ${TORCH} == 1.13.1 ]; then pip install numpy==1.26.4; fi # older torch versions fail with numpy 2
3435
pip install torch==${TORCH} -f https://download.pytorch.org/whl/cpu/torch_stable.html
3536
pip install h5py scikit-learn # install packages that aren't required dependencies but that the tests do need
3637
pip install --upgrade-strategy only-if-needed .

0 commit comments

Comments
 (0)