Skip to content

Commit

Permalink
Merge pull request #841 from dianna-ai/fix_837
Browse files Browse the repository at this point in the history
Pin torch version
  • Loading branch information
cwmeijer authored Aug 14, 2024
2 parents 93c624e + d43bb28 commit 15f3587
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/actions/install-python-and-package/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,12 @@ runs:
python -m pip install --upgrade pip setuptools wheel
# only necessary on linux to avoid bloated installs
# pining the version of torch is temporary, see see #829
- name: Install tensorflow/pytorch cpu version
if: runner.os == 'Linux' && steps.cache-python-env.outputs.cache-hit != 'true'
shell: bash {0}
run: |
python -m pip install torch --index-url https://download.pytorch.org/whl/cpu
python -m pip install torch==2.3.1 --index-url https://download.pytorch.org/whl/cpu
python -m pip install tensorflow-cpu
- name: Install DIANNA
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ install_requires =
scikit-learn
tqdm
xarray
torch <=2.3.1 # this is temporary, see #829
# tf and tfprob are required but not declared by onnx_tf
tensorflow >= 2.12,<2.16
tensorflow_probability <0.24
Expand Down

0 comments on commit 15f3587

Please sign in to comment.