Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pin torch version #841

Merged
merged 1 commit into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading