File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323 if [[ ${{ matrix.pytorch-version }} = "latest" ]]; then
2424 pip install --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html;
2525 else
26- pip install torch==1.11+cpu -f https://download.pytorch.org/whl/torch_stable.html;
26+ pip install "numpy<2" # Numpy 2.0 is not fully supported until PyTorch 2.2
27+ pip install torch==2.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
2728 fi
2829 pip install -e ".[test]"
2930 - name : Run unit tests
Original file line number Diff line number Diff line change 2727 if [[ ${{ matrix.pytorch-version }} = "latest" ]]; then
2828 pip install --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
2929 else
30+ pip install "numpy<2" # Numpy 2.0 is not fully supported until PyTorch 2.2
3031 pip install torch==2.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
31- pip install "numpy<2"
3232 fi
3333 pip install -e ".[test]"
3434 - name : Run unit tests
You can’t perform that action at this time.
0 commit comments